author | Clemens Buchacher <drizzd@aon.at> | |
Thu, 1 Jan 2009 20:54:33 +0000 (21:54 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 5 Jan 2009 20:48:43 +0000 (12:48 -0800) | ||
commit | 7b9e3ce0255002075809917e0384cba3a0d18589 | |
tree | 19ba55daca9cdb138afbf468059c3b6c268941c1 | tree | snapshot |
parent | 837e5fe95d9d6e597b748d338e45cca231f558fa | commit | diff |
unpack-trees: remove redundant path search in verify_absent
Since the only caller, verify_absent, relies on the fact that o->pos
points to the next index entry anyways, there is no need to recompute
its position.
Furthermore, if a nondirectory entry were found, this would return too
early, because there could still be an untracked directory in the way.
This is currently not a problem, because verify_absent is only called
if the index does not have this entry.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Since the only caller, verify_absent, relies on the fact that o->pos
points to the next index entry anyways, there is no need to recompute
its position.
Furthermore, if a nondirectory entry were found, this would return too
early, because there could still be an untracked directory in the way.
This is currently not a problem, because verify_absent is only called
if the index does not have this entry.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
unpack-trees.c | diff | blob | history |