pre-rebase hook: capture documentation in a <<here document

Without this change, the sample hook does not pass a syntax check (sh -n): $ sh -n hooks--pre-rebase.sample hooks--pre-rebase.sample: line 101: syntax error near unexpected token `(' hooks--pre-rebase.sample: line 101: ` merged into it again (either directly or indirectly).' Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jonathan Nieder committed Jul 10, 2017 at 16:35 UTC 8db1ae57409b10ba48596198b329adba7fcb6b1a
1 file changed +3 -3
templates/hooks--pre-rebase.sample
+3 -3
@@ -88,9 +88,7 @@ else
88 exit 1
89 fi
90
91 -exit 0
92 -
93 -################################################################
91 +<<\DOC_END
92
93 This sample hook safeguards topic branches that have been
94 published from being rewound.
@@ -167,3 +165,5 @@ To compute (2):
165 git rev-list master..topic
166
167 if this is empty, it is fully merged to "master".
168 +
169 +DOC_END