Re: [PATCH] diffcore: fix iteration order of identical files during rename detection

2016-03-30 Thread Junio C Hamano
SZEDER Gábor writes: > Fill the hashmap with source entries in reverse order to restore the > original exact rename detection behavior. Thanks for digging out and fixing this unintended regression that happened long time ago. Will queue. > > Reported-by: Bill Okara

[PATCH] diffcore: fix iteration order of identical files during rename detection

2016-03-30 Thread SZEDER Gábor
If the two paths 'dir/A/file' and 'dir/B/file' have identical content and the parent directory is renamed, e.g. 'git mv dir other-dir', then diffcore reports the following exact renames: renamed:dir/B/file -> other-dir/A/file renamed:dir/A/file -> other-dir/B/file While