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
This commit is contained in:
@ -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) &&
|
||||
|
Reference in New Issue
Block a user