contrib/remote-helpers: style updates for test scripts
commitff867963f01ab9b5f1d27ef2e7b255fcb74281d5
authorJunio C Hamano <gitster@pobox.com>
Thu, 29 Aug 2013 21:10:04 +0000 (29 14:10 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Sep 2013 17:25:19 +0000 (3 10:25 -0700)
tree8953dd783351b87f2bdad9854d1fdc9e75b1f9d7
parentc587d655122a287a6796d493d176128f05374156
contrib/remote-helpers: style updates for test scripts

During the review of the main series it was noticed that these test
scripts can use updates to conform to our coding style better, but
fixing the style should be done in a patch separate from the main
series.

This updates the test-*.sh scripts only for style issues:

 * We do not leave SP between a redirection operator and the
   filename;

 * We change line before "then", "do", etc. rather than terminating
   the condition for "if"/"while" and list for "for" with a
   semicolon;

 * When HERE document does not use any expansion, we quote the end
   marker (e.g. "cat <<\EOF" not "cat <<EOF") to signal the readers
   that there is no funny substitution to worry about when reading
   the code.

 * We use "test" rather than "[".

Reviewed-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/remote-helpers/test-bzr.sh
contrib/remote-helpers/test-hg-bidi.sh
contrib/remote-helpers/test-hg-hg-git.sh
contrib/remote-helpers/test-hg.sh