Documentation: add shell guidelines
commita378fee5b0795d671722d803b93b7b32941c0067
authorMatthew DeVore <matvore@google.com>
Fri, 5 Oct 2018 21:54:02 +0000 (5 14:54 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Oct 2018 23:51:17 +0000 (7 08:51 +0900)
tree67b3d1b032b4de9f14749ed7e1c31c9b6e963f12
parent441ee35d8384fe7f6328584ac1634da14ed42e11
Documentation: add shell guidelines

Add the following guideline to Documentation/CodingGuidelines:

Break overlong lines after "&&", "||", and "|", not before
them; that way the command can continue to subsequent lines
without backslash at the end.

And the following to t/README (since it is specific to writing tests):

Pipes and $(git ...) should be avoided when they swallow exit
codes of Git processes

Signed-off-by: Matthew DeVore <matvore@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/CodingGuidelines
t/README