generate-cmdlist.sh: avoid selecting synopsis at wrong place
In "common" man pages there is luckily no "NAME" anywhere except at beginning of documents. If there is another "NAME", sed could mis-select it and lead to common-cmds.h corruption. So better nail it at beginning of line, which would reduce corruption chance. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nguyễn Thái Ngọc Duy committed
Nov 30, 2008 at 17:54 UTC
16d258332e35dad58c0b22cd4d5c0e63ebb25328
1 file changed
+1
-1
generate-cmdlist.sh
+1
-1
@@ -14,7 +14,7 @@ sort |
14
while read cmd
15
do
16
sed -n '
17
- /NAME/,/git-'"$cmd"'/H
17
+ /^NAME/,/git-'"$cmd"'/H
18
${
19
x
20
s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/