diff options
author | René Scharfe <l.s.r@web.de> | 2022-10-01 12:28:07 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-10-01 15:58:38 -0700 |
commit | a79c6b60817c74534815bf132f0b26aa8e325874 (patch) | |
tree | 2286856152f99d1faa6ff41bc50689277657251e /t/t6429-merge-sequence-rename-caching.sh | |
parent | 9f91da752fa28e405e91dfd6bd7372f897bbae8d (diff) | |
download | git-a79c6b60817c74534815bf132f0b26aa8e325874.tar.gz |
diff: support ^! for merges
revision.c::handle_revision_arg_1() resolves <rev>^! by first adding the
negated parents and then <rev> itself. builtin_diff_combined() expects
the first tree to be the merge and the remaining ones to be the parents,
though. This mismatch results in bogus diff output.
Remember the first tree that doesn't belong to a parent and use it
instead of blindly picking the first one. This makes "git diff <rev>^!"
consistent with "git show <rev>^!".
Reported-by: Tim Jaacks <tim.jaacks@garz-fricke.com>
Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6429-merge-sequence-rename-caching.sh')
0 files changed, 0 insertions, 0 deletions