X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft1411-reflog-show.sh;h=caa687b5b46cea65ed16c70c29cc11e9e8b771f1;hb=22dbeee715e4c9fae3e3fdc1f3a2c4a6ec90e593;hp=ba25ff354d6fc4998237b1145737faf6c836966e;hpb=42f98745732c68baa6d79a50eab0d726b549025d;p=git.git diff --git a/t/t1411-reflog-show.sh b/t/t1411-reflog-show.sh index ba25ff354..caa687b5b 100755 --- a/t/t1411-reflog-show.sh +++ b/t/t1411-reflog-show.sh @@ -28,6 +28,24 @@ test_expect_success 'oneline reflog format' ' test_cmp expect actual ' +test_expect_success 'reflog default format' ' + git reflog -1 >actual && + test_cmp expect actual +' + +cat >expect <<'EOF' +commit e46513e +Reflog: HEAD@{0} (C O Mitter ) +Reflog message: commit (initial): one +Author: A U Thor + + one +EOF +test_expect_success 'override reflog default format' ' + git reflog --format=short -1 >actual && + test_cmp expect actual +' + cat >expect <<'EOF' Reflog: HEAD@{Thu Apr 7 15:13:13 2005 -0700} (C O Mitter ) Reflog message: commit (initial): one