summaryrefslogtreecommitdiff
path: root/t/t3437-rebase-fixup-options.sh
diff options
context:
space:
mode:
authorCharvi Mendiratta <charvi077@gmail.com>2021-02-10 11:36:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-02-10 21:58:19 (GMT)
commit4755fed0a6d1390b4520658228617b17b9ee822a (patch)
tree2743ab9ffec077830d84570cb934aba2296b93fa /t/t3437-rebase-fixup-options.sh
parent733ad2e15a5f078543fb0a5a10ee8ae5419d318e (diff)
downloadgit-4755fed0a6d1390b4520658228617b17b9ee822a.zip
git-4755fed0a6d1390b4520658228617b17b9ee822a.tar.gz
git-4755fed0a6d1390b4520658228617b17b9ee822a.tar.bz2
t/t3437: check the author date of fixed up commit
Add '%at' format in the get_author() function and update the test to check that the author date of the fixed up commit is unchanged. Mentored-by: Christian Couder <chriscool@tuxfamily.org> Mentored-by: Phillip Wood <phillip.wood@dunelm.org.uk> Helped-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Charvi Mendiratta <charvi077@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3437-rebase-fixup-options.sh')
-rwxr-xr-xt/t3437-rebase-fixup-options.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/t3437-rebase-fixup-options.sh b/t/t3437-rebase-fixup-options.sh
index d368ab4..505211a 100755
--- a/t/t3437-rebase-fixup-options.sh
+++ b/t/t3437-rebase-fixup-options.sh
@@ -33,7 +33,7 @@ test_commit_message () {
get_author () {
rev="$1" &&
- git log -1 --pretty=format:"%an %ae" "$rev"
+ git log -1 --pretty=format:"%an %ae %at" "$rev"
}
test_expect_success 'setup' '
@@ -196,6 +196,8 @@ test_expect_success 'multiple fixup -c opens editor once' '
EXPECT_HEADER_COUNT=4 \
git rebase -i $base &&
test_cmp_rev $base HEAD^ &&
+ get_author HEAD >actual-author &&
+ test_cmp expected-author actual-author &&
test 1 = $(git show | grep Modified-A3 | wc -l)
'