summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJohan Herland <johan@herland.net>2014-11-12 00:40:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-11-14 21:33:09 (GMT)
commit908a3203632a02568df230c0fccf9a2cd8da24e6 (patch)
treed67a27c86a1ebe5eaaca30441bd4e6bd96ae3fa1 /contrib
parent8a4acd699536c518c9245714d6175aa39d13eb9d (diff)
downloadgit-908a3203632a02568df230c0fccf9a2cd8da24e6.zip
git-908a3203632a02568df230c0fccf9a2cd8da24e6.tar.gz
git-908a3203632a02568df230c0fccf9a2cd8da24e6.tar.bz2
t3301: modernize style
Make this test script appear somewhat less old-fashioned: - Use test helper functions: - write_script - test_commit - test_write_lines - test_line_count - test_config - test_unconfig - test_path_is_missing - Remove whitespace between redirection operators and their targets. - Move preparation of "expect" files into tests. - Rename "output" files to "actual". - More consistent quoting, especially around commands that might expand to nothing. - More visibility of important whitespace with ${indent}. - Combine pairs of tests that unnecessarily split setup and verification. Improved-by: Eric Sunshine <sunshine@sunshineco.com> Improved-by: Junio C Hamano <gitster@pobox.com> Improved-by: Michael Blume <blume.mike@gmail.com> Improved-by: Jeff King <peff@peff.net> Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions