author | Junio C Hamano <gitster@pobox.com> | |
Fri, 18 Sep 2009 05:12:17 +0000 (22:12 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 11 Oct 2009 23:40:43 +0000 (16:40 -0700) | ||
commit | da8ba5e7da01be597aa9417c563dbd516ea5f204 | |
tree | 8bae7916d0633470b0a6d8dcb0f9fdf49ae8b420 | tree | snapshot |
parent | 79b4fde573eb5e86a8109d100ad182be1eb5fc54 | commit | diff |
diff-lib.c: fix misleading comments on oneway_diff()
20a16eb (unpack_trees(): fix diff-index regression., 2008-03-10) adjusted
diff-index to the new world order since 34110cd (Make 'unpack_trees()'
have a separate source and destination index, 2008-03-06). Callbacks are
expected to return anything non-negative as "success", and instead of
reporting how many index entries they have processed, they are expected to
advance o->pos themselves. The code did so, but a stale comment was left
behind.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
20a16eb (unpack_trees(): fix diff-index regression., 2008-03-10) adjusted
diff-index to the new world order since 34110cd (Make 'unpack_trees()'
have a separate source and destination index, 2008-03-06). Callbacks are
expected to return anything non-negative as "success", and instead of
reporting how many index entries they have processed, they are expected to
advance o->pos themselves. The code did so, but a stale comment was left
behind.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff-lib.c | diff | blob | history |