aboutsummaryrefslogtreecommitdiff
path: root/t/t6006-rev-list-format.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2011-12-16 06:40:24 -0500
committerJunio C Hamano <gitster@pobox.com>2011-12-16 13:00:15 -0800
commitcd1957f5fc6ecc5ae557246126d9e74c029ccd61 (patch)
tree0efe0b7c1d87b3c038fd55696a53a2a76db30148 /t/t6006-rev-list-format.sh
parent7b6c5836cf02999955b68c79f1cf2d13040acbc3 (diff)
downloadgit-cd1957f5fc6ecc5ae557246126d9e74c029ccd61.tar.gz
git-cd1957f5fc6ecc5ae557246126d9e74c029ccd61.tar.xz
pretty: give placeholders to reflog identity
When doing a reflog walk, you can get some information about the reflog (such as the subject line), but not the identity information (i.e., name and email). Let's make those available, mimicing the options for author and committer identity. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 d918cc02d..444279077 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 &&