mirror of
https://github.com/git/git.git
synced 2026-03-19 05:00:08 +01:00
Merge branch 'master' into next
* master: fast-export: ensure that a renamed file is printed after all references
This commit is contained in:
@@ -167,7 +167,15 @@ static int depth_first(const void *a_, const void *b_)
|
||||
cmp = memcmp(name_a, name_b, len);
|
||||
if (cmp)
|
||||
return cmp;
|
||||
return (len_b - len_a);
|
||||
cmp = len_b - len_a;
|
||||
if (cmp)
|
||||
return cmp;
|
||||
/*
|
||||
* Move 'R'ename entries last so that all references of the file
|
||||
* appear in the output before it is renamed (e.g., when a file
|
||||
* was copied and renamed in the same commit).
|
||||
*/
|
||||
return (a->status == 'R') - (b->status == 'R');
|
||||
}
|
||||
|
||||
static void show_filemodify(struct diff_queue_struct *q,
|
||||
|
||||
Reference in New Issue
Block a user