Skip to content

Commit 3593ebd

Browse files
avargitster
authored andcommitted
pretty tests: give --date/format tests a better description
Change the description for the --date/format equivalency tests added in 466fb67 (pretty: provide a strict ISO 8601 date format, 2014-08-29) and 0df6211 (pretty: provide short date format, 2019-11-19) to be more meaningful. This allows us to reword the comment added in the former commit to refer to both tests, and any other future test, such as the in-flight --date=human format being proposed in [1]. 1. http://lore.kernel.org/git/pull.939.v2.git.1619275340051.gitgitgadget@gmail.com Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent fbfcaec commit 3593ebd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/t4205-log-pretty-formats.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,14 +525,14 @@ test_expect_success 'strbuf_utf8_replace() not producing NUL' '
525525
! grep Q actual
526526
'
527527

528-
# ISO strict date format
529-
test_expect_success 'ISO and ISO-strict date formats display the same values' '
528+
# --date=[XXX] and corresponding %a[X] %c[X] format equivalency
529+
test_expect_success '--date=iso-strict %ad%cd is the same as %aI%cI' '
530530
git log --format=%ad%n%cd --date=iso-strict >expected &&
531531
git log --format=%aI%n%cI >actual &&
532532
test_cmp expected actual
533533
'
534534

535-
test_expect_success 'short date' '
535+
test_expect_success '--date=short %ad%cd is the same as %as%cs' '
536536
git log --format=%ad%n%cd --date=short >expected &&
537537
git log --format=%as%n%cs >actual &&
538538
test_cmp expected actual

0 commit comments

Comments
 (0)