t6300: introduce test_date() helper
commitf95cecf43335dd8e80e954c2f998dc0e8b0dd070
authorJohn Keeping <john@keeping.me.uk>
Thu, 3 Sep 2015 21:48:56 +0000 (3 22:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 3 Sep 2015 22:36:38 +0000 (3 15:36 -0700)
tree4450e3dba40a58f8cd4cf3b14d38539ba73b4d89
parent547ed71636dbfab2dc303ba8cabb29c2cab22f1e
t6300: introduce test_date() helper

This moves the setup of the "expected" file inside the test case.  The
helper function has the advantage that we can use SQ in the file content
without needing to escape the quotes.

Signed-off-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6300-for-each-ref.sh