On 29.08.14 20:59, Junio C Hamano wrote: >> +# 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=%aI%n%cI >actual && >> + test_cmp expected actual >> +' > > This is saying that as long as --date=iso-strict format is > bug-to-bug compatible with --date=iso format it is OK. > > Which is fine, especially knowing the implementation ;-) > Yeah, I wasn't sure how to test this, since the commit dates change with each test run. Maybe it's the easy way out, but on the other hand it's better than no test at all. Check the known parts with a regex? Thanks, Beat -- mail: echo '<bNbolOli@xxxxxxxxxxxxx>' | tr -d '[A-S]' pgp: 0x506A903A; 49D5 794A EA77 F907 764F D89E 304B 93CF 506A 903A gsm: 4.7.7.6.0.7.7.9.7.1.4.e164.arpa icbm: 47.0452 N, 7.2715 E "It takes love over gold, and mind over matter" -- Dire Straits
Attachment:
signature.asc
Description: OpenPGP digital signature