]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t3404-rebase-interactive.sh
rebase -i: provide reasonable reflog for the rebased branch
[thirdparty/git.git] / t / t3404-rebase-interactive.sh
index 19a3a8e813785fbb1a6cfc522bff212ec3a9e6fc..9f12bb932115629669625fad131c6aa580e572f1 100755 (executable)
@@ -99,6 +99,10 @@ test_expect_success 'rebase on top of a non-conflicting commit' '
        test $(git rev-parse I) = $(git rev-parse HEAD~2)
 '
 
+test_expect_success 'reflog for the branch shows state before rebase' '
+       test $(git rev-parse branch1@{1}) = $(git rev-parse original-branch1)
+'
+
 test_expect_success 'exchange two commits' '
        FAKE_LINES="2 1" git rebase -i HEAD~2 &&
        test H = $(git cat-file commit HEAD^ | tail -n 1) &&