summaryrefslogtreecommitdiff
path: root/test-date.c
diff options
context:
space:
mode:
authorLibravatar Stefan Beller <stefanbeller@googlemail.com>2013-07-19 22:26:32 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-07-19 15:29:41 -0700
commita04f8196a8f067b6c36415a0d934a46465140c34 (patch)
treebed9b67e0f25f0ec46d12cf52dd6ff451043f902 /test-date.c
parentGit 1.8.3 (diff)
downloadtgif-a04f8196a8f067b6c36415a0d934a46465140c34.tar.xz
traverse_trees(): clarify return value of the callback
The variable name "ret" sounds like the variable to be returned, but since e6c111b4 we return error, and it is misleading. As this variable tells us which trees in t[] array were used in the callback function, so that this caller can know the entries in which of the trees need advancing, "trees_used" is a better name. Also the assignment to 0 was removed at the start of the function as well after the "if (interesting)" block. Those are unneeded as that variable is set to the callback return value any time we enter the "if (interesting)" block, so we'd overwrite old values anyway. Signed-off-by: Stefan Beller <stefanbeller@googlemail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-date.c')
0 files changed, 0 insertions, 0 deletions