diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-10-31 06:18:31 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-10-31 06:18:31 +0300 |
commit | 5f809ff50921bee44bbf88c49056e7d145c0c35f (patch) | |
tree | 451ba24442900b54c90264056998effaf25cd4eb /t | |
parent | d39d667169fda640065d48b70288c3342bd3195d (diff) | |
parent | b7b10385a84c741a4fe219807c9511f69403640a (diff) |
fixup tr/stash-format merge
Diffstat (limited to 't')
-rwxr-xr-x | t/t6006-rev-list-format.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/t/t6006-rev-list-format.sh b/t/t6006-rev-list-format.sh index 59d1f6283b..7f61ab0e52 100755 --- a/t/t6006-rev-list-format.sh +++ b/t/t6006-rev-list-format.sh @@ -162,4 +162,22 @@ test_expect_success 'empty email' ' } ' +test_expect_success '"%h %gD: %gs" is same as git-reflog' ' + git reflog >expect && + git log -g --format="%h %gD: %gs" >actual && + test_cmp expect actual +' + +test_expect_success '"%h %gD: %gs" is same as git-reflog (with date)' ' + git reflog --date=raw >expect && + git log -g --format="%h %gD: %gs" --date=raw >actual && + test_cmp expect actual +' + +test_expect_success '%gd shortens ref name' ' + echo "master@{0}" >expect.gd-short && + git log -g -1 --format=%gd refs/heads/master >actual.gd-short && + test_cmp expect.gd-short actual.gd-short +' + test_done |