]> git.ipfire.org Git - thirdparty/git.git/commit
diff-lib: drop stale comment about advancing o->pos
authorJeff King <peff@peff.net>
Sun, 26 Jul 2026 08:46:22 +0000 (04:46 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Jul 2026 16:17:27 +0000 (09:17 -0700)
commit640177a987270564a8ef90cdc359677209fbe0fe
tree4b33ea997660073c561c83a357f84660d1c8c785
parent8d01be9868e08413ea9371ac3a0148fc983f8e1d
diff-lib: drop stale comment about advancing o->pos

The comment above oneway_diff() claims that the callback must advance
o->pos to skip index entries it has already processed. That stopped
being true in da165f470e (unpack-trees.c: prepare for looking ahead in
the index, 2010-01-07), which moved that bookkeeping into
unpack_trees().

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff-lib.c