From: Junio C Hamano <gitster@pobox.com>
To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Cc: git@vger.kernel.org, "ZheNing Hu" <adlternative@gmail.com>,
"René Scharfe" <l.s.r@web.de>, "Taylor Blau" <me@ttaylorr.com>,
"Beat Bolli" <bbolli@ewanet.ch>
Subject: Re: [PATCH 1/2] pretty tests: simplify %aI/%cI date format test
Date: Tue, 27 Apr 2021 16:08:44 +0900 [thread overview]
Message-ID: <xmqqtunsdx1f.fsf@gitster.g> (raw)
In-Reply-To: <patch-1.2-4a90e4a141a-20210425T090506Z-avarab@gmail.com> ("Ævar Arnfjörð Bjarmason"'s message of "Sun, 25 Apr 2021 11:11:32 +0200")
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> # ISO strict date format
> test_expect_success 'ISO and ISO-strict date formats display the same values' '
> - git log --format=%ai%n%ci |
> - sed -e "s/ /T/; s/ //; s/..\$/:&/" >expected &&
> + git log --format=%ad%n%cd --date=iso-strict >expected &&
> git log --format=%aI%n%cI >actual &&
While these two must show the same output, I wonder how much value
we are getting out of them. Don't they end up exercising pretty
much the same codepath?
Not that I think the original is any better at all, though ;-)
> test_cmp expected actual
> '
next prev parent reply other threads:[~2021-04-27 7:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-23 16:27 [PATCH] [GSOC] pretty: provide human date format ZheNing Hu via GitGitGadget
2021-04-23 20:21 ` Taylor Blau
2021-04-24 13:26 ` ZheNing Hu
2021-04-23 21:10 ` Philip Oakley
2021-04-24 13:33 ` ZheNing Hu
2021-04-24 14:42 ` [PATCH v2] " ZheNing Hu via GitGitGadget
2021-04-24 19:44 ` Philip Oakley
2021-04-25 9:11 ` [PATCH 0/2] pretty tests: --date/format test improvements Ævar Arnfjörð Bjarmason
2021-04-25 9:11 ` [PATCH 1/2] pretty tests: simplify %aI/%cI date format test Ævar Arnfjörð Bjarmason
2021-04-26 21:22 ` Beat Bolli
2021-04-27 7:08 ` Junio C Hamano [this message]
2021-04-25 9:11 ` [PATCH 2/2] pretty tests: give --date/format tests a better description Ævar Arnfjörð Bjarmason
2021-04-25 9:30 ` ZheNing Hu
2021-04-25 10:41 ` [PATCH v3] [GSOC] pretty: provide human date format ZheNing Hu via GitGitGadget
2021-05-03 15:37 ` [PATCH v4] " ZheNing Hu via GitGitGadget
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqtunsdx1f.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=adlternative@gmail.com \
--cc=avarab@gmail.com \
--cc=bbolli@ewanet.ch \
--cc=git@vger.kernel.org \
--cc=l.s.r@web.de \
--cc=me@ttaylorr.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.