author | Junio C Hamano <gitster@pobox.com> | |
Thu, 14 Jul 2011 01:42:32 +0000 (18:42 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 14 Jul 2011 04:58:15 +0000 (21:58 -0700) | ||
commit | fe549c21fc3d99b9ff66f03d192f955400c80191 | |
tree | 4295807c97fa212f31ab23eecd7a7a82095d3535 | tree | snapshot |
parent | ff00b682f203eb39876b57404916b4c54b6032c6 | commit | diff |
diff-lib: simplify do_diff_cache()
Since 34110cd (Make 'unpack_trees()' have a separate source and
destination index, 2008-03-06), we can run unpack_trees() without munging
the index at all, but do_diff_cache() tried ever so carefully to work
around the old behaviour of the function.
We can just tell unpack_trees() not to touch the original index and there
is no need to clean-up whatever the previous round has done.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Since 34110cd (Make 'unpack_trees()' have a separate source and
destination index, 2008-03-06), we can run unpack_trees() without munging
the index at all, but do_diff_cache() tried ever so carefully to work
around the old behaviour of the function.
We can just tell unpack_trees() not to touch the original index and there
is no need to clean-up whatever the previous round has done.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff-lib.c | diff | blob | history |