summaryrefslogtreecommitdiff
path: root/t/t1300-config.sh
diff options
context:
space:
mode:
authorMatthew DeVore <matvore@google.com>2018-10-05 21:54:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-10-06 23:51:18 (GMT)
commitbdbc17e86abe2471c4bd0d52cdc004835cb7bb3e (patch)
tree2038e498933dcf79ed8f53dfd179bdfba6b34d50 /t/t1300-config.sh
parenta378fee5b0795d671722d803b93b7b32941c0067 (diff)
downloadgit-bdbc17e86abe2471c4bd0d52cdc004835cb7bb3e.zip
git-bdbc17e86abe2471c4bd0d52cdc004835cb7bb3e.tar.gz
git-bdbc17e86abe2471c4bd0d52cdc004835cb7bb3e.tar.bz2
tests: standardize pipe placement
Instead of using a line-continuation and pipe on the second line, take advantage of the shell's implicit line continuation after a pipe character. So for example, instead of some long line \ | next line use some long line | next line And add a blank line before and after the pipe where it aids readability (it usually does). This better matches the coding style documented in Documentation/CodingGuidelines and used in shell scripts elsewhere in the tree. Signed-off-by: Matthew DeVore <matvore@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1300-config.sh')
-rwxr-xr-xt/t1300-config.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/t1300-config.sh b/t/t1300-config.sh
index cdf1fed..5869d6c 100755
--- a/t/t1300-config.sh
+++ b/t/t1300-config.sh
@@ -1770,8 +1770,9 @@ test_expect_success '--show-origin stdin with file include' '
cat >expect <<-EOF &&
file:$INCLUDE_DIR/stdin.include include
EOF
- echo "[include]path=\"$INCLUDE_DIR\"/stdin.include" \
- | git config --show-origin --includes --file - user.stdin >output &&
+ echo "[include]path=\"$INCLUDE_DIR\"/stdin.include" |
+ git config --show-origin --includes --file - user.stdin >output &&
+
test_cmp expect output
'