summaryrefslogtreecommitdiff
path: root/t/t6006-rev-list-format.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2011-12-22 11:27:28 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-12-22 11:27:28 -0800
commitadb86762e5535108a9fb4ddc63d2e70cee2038a7 (patch)
tree1c2a59dba4cc71e18e1175f60f8299bb3169dbf5 /t/t6006-rev-list-format.sh
parentMerge branch 'jk/follow-rename-score' (diff)
parentpretty: give placeholders to reflog identity (diff)
downloadtgif-adb86762e5535108a9fb4ddc63d2e70cee2038a7.tar.xz
Merge branch 'jk/pretty-reglog-ent'
* jk/pretty-reglog-ent: pretty: give placeholders to reflog identity
Diffstat (limited to 't/t6006-rev-list-format.sh')
-rwxr-xr-xt/t6006-rev-list-format.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t6006-rev-list-format.sh b/t/t6006-rev-list-format.sh
index d918cc02d0..444279077e 100755
--- a/t/t6006-rev-list-format.sh
+++ b/t/t6006-rev-list-format.sh
@@ -267,6 +267,12 @@ test_expect_success '%gd shortens ref name' '
test_cmp expect.gd-short actual.gd-short
'
+test_expect_success 'reflog identity' '
+ echo "C O Mitter:committer@example.com" >expect &&
+ git log -g -1 --format="%gn:%ge" >actual &&
+ test_cmp expect actual
+'
+
test_expect_success 'oneline with empty message' '
git commit -m "dummy" --allow-empty &&
git commit -m "dummy" --allow-empty &&