Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tree-diff: no need to manually verify that there is no mode change fo…
…r a path Because if there is, such two tree entries would never be compared as equal - the code in base_name_compare() explicitly compares modes, if there is a change for dir bit, even for equal paths, entries would compare as different. The code I'm removing here is from 2005 April 262e82b (Fix diff-tree recursion), which pre-dates base_name_compare() introduction in 958ba6c (Introduce "base_name_compare()" helper function) by a month. Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Junio C Hamano <gitster@pobox.com>
- Loading branch information