diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2008-11-30 17:54:31 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-11-30 18:16:32 -0800 |
commit | 16d258332e35dad58c0b22cd4d5c0e63ebb25328 (patch) | |
tree | 0d387bce358675d2e90b27287091100b915571ef /generate-cmdlist.sh | |
parent | 539eec48f0a101b45c5f150a2bbc067fd85bc96d (diff) | |
download | git-16d258332e35dad58c0b22cd4d5c0e63ebb25328.tar.gz git-16d258332e35dad58c0b22cd4d5c0e63ebb25328.tar.xz |
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>
Diffstat (limited to 'generate-cmdlist.sh')
-rwxr-xr-x | generate-cmdlist.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generate-cmdlist.sh b/generate-cmdlist.sh index a2913c2a2..75c68d948 100755 --- a/generate-cmdlist.sh +++ b/generate-cmdlist.sh @@ -14,7 +14,7 @@ sort | while read cmd do sed -n ' - /NAME/,/git-'"$cmd"'/H + /^NAME/,/git-'"$cmd"'/H ${ x s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/ |