Thread (1 message) 1 message, 1 author, 2021-04-27

Re: [PATCH 1/2] pretty tests: simplify %aI/%cI date format test

From: Junio C Hamano <hidden>
Date: 2021-04-27 07:08:48

Ævar Arnfjörð Bjarmason  [off-list ref] 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
 '
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help