diff options
| author | Junio C Hamano <gitster@pobox.com> | 2021-05-07 12:47:39 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-05-07 12:47:39 +0900 |
| commit | f16a4660de5751ca8c5229698d97b02e6676298c (patch) | |
| tree | 9f0b1ba24cae419fce8db3f0c0c9a2e240e99144 /t | |
| parent | Merge branch 'zh/format-ref-array-optim' (diff) | |
| parent | pretty: provide human date format (diff) | |
| download | git-f16a4660de5751ca8c5229698d97b02e6676298c.tar.gz git-f16a4660de5751ca8c5229698d97b02e6676298c.zip | |
Merge branch 'zh/pretty-date-human'
"git log --format=..." placeholders learned %ah/%ch placeholders to
request the --date=human output.
* zh/pretty-date-human:
pretty: provide human date format
Diffstat (limited to 't')
| -rwxr-xr-x | t/t4205-log-pretty-formats.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t4205-log-pretty-formats.sh b/t/t4205-log-pretty-formats.sh index bcb558ef4d..8272d94ce6 100755 --- a/t/t4205-log-pretty-formats.sh +++ b/t/t4205-log-pretty-formats.sh @@ -538,6 +538,12 @@ test_expect_success '--date=short %ad%cd is the same as %as%cs' ' test_cmp expected actual ' +test_expect_success '--date=human %ad%cd is the same as %ah%ch' ' + git log --format=%ad%n%cd --date=human >expected && + git log --format=%ah%n%ch >actual && + test_cmp expected actual +' + # get new digests (with no abbreviations) test_expect_success 'set up log decoration tests' ' head1=$(git rev-parse --verify HEAD~0) && |
