summaryrefslogtreecommitdiffstats
path: root/t/t4069-remerge-diff.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-12-19 19:58:31 +0100
committerJunio C Hamano <gitster@pobox.com>2024-12-19 19:58:31 +0100
commitcb89eebf3bb0b78c5193f8b6293b4b22ce8b08ca (patch)
treee40d34e3a7718102cd77b845067acbb76812ad62 /t/t4069-remerge-diff.sh
parentMerge branch 'bf/fetch-set-head-config' (diff)
parentlog: --remerge-diff needs to keep around commit parents (diff)
downloadgit-cb89eebf3bb0b78c5193f8b6293b4b22ce8b08ca.tar.xz
git-cb89eebf3bb0b78c5193f8b6293b4b22ce8b08ca.zip
Merge branch 'js/log-remerge-keep-ancestry'
"git log -p --remerge-diff --reverse" was completely broken. * js/log-remerge-keep-ancestry: log: --remerge-diff needs to keep around commit parents
Diffstat (limited to 't/t4069-remerge-diff.sh')
-rwxr-xr-xt/t4069-remerge-diff.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t4069-remerge-diff.sh b/t/t4069-remerge-diff.sh
index ca8f999cab..c6c94aef14 100755
--- a/t/t4069-remerge-diff.sh
+++ b/t/t4069-remerge-diff.sh
@@ -352,4 +352,11 @@ test_expect_success 'remerge-diff turns off history simplification' '
test_cmp expect actual
'
+test_expect_success 'remerge-diff with --reverse' '
+ git log -1 --remerge-diff --oneline ab_resolution^ >expect &&
+ git log -1 --remerge-diff --oneline ab_resolution >>expect &&
+ git log -2 --remerge-diff --oneline ab_resolution --reverse >actual &&
+ test_cmp expect actual
+'
+
test_done