]> git.ipfire.org Git - thirdparty/git.git/commit - cache.h
Documentation: No argument of ALLOC_GROW should have side-effects
authorJonathan Nieder <jrnieder@gmail.com>
Fri, 8 Oct 2010 16:46:59 +0000 (11:46 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Oct 2010 20:17:10 +0000 (13:17 -0700)
commit01f6fd4b4e59bc131941d917138cdd2cc6662382
treec97eb430969d415ed92e3abe929facadacfa5528
parent7c6eafa35af805578990e76b691ff7f1a25a3c57
Documentation: No argument of ALLOC_GROW should have side-effects

The explanatory comment before the definition of ALLOC_GROW carefully
lists arguments that will be used more than once and thus cannot have
side-effects; a lazy reader might conclude that the arguments not
listed are used only once and side effects safe.

Correct it to list all three arguments, avoiding this confusion.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h