diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-06-01 12:45:18 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-01 12:45:19 -0700 |
commit | 6dec263333417738528089834bd8cda72017aa31 (patch) | |
tree | 70e67708b1100262c98206130af057cc0b137fa6 /generate-cmdlist.sh | |
parent | abcbafedbfbd5994ad604bab141c0ba18f5a19df (diff) | |
parent | 224147704a3696d396dae005c280f7a25de407c7 (diff) | |
download | git-6dec263333417738528089834bd8cda72017aa31.tar.gz git-6dec263333417738528089834bd8cda72017aa31.tar.xz |
Merge branch 'sg/help-group'
Group list of commands shown by "git help" along the workflow
elements to help early learners.
* sg/help-group:
help: respect new common command grouping
command-list.txt: drop the "common" tag
generate-cmdlist: parse common group commands
command-list.txt: add the common groups block
command-list: prepare machinery for upcoming "common groups" section
Diffstat (limited to 'generate-cmdlist.sh')
-rwxr-xr-x | generate-cmdlist.sh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/generate-cmdlist.sh b/generate-cmdlist.sh deleted file mode 100755 index 9a4c9b94e..000000000 --- a/generate-cmdlist.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -echo "/* Automatically generated by $0 */ -struct cmdname_help { - char name[16]; - char help[80]; -}; - -static struct cmdname_help common_cmds[] = {" - -sed -n -e 's/^git-\([^ ]*\)[ ].* common.*/\1/p' command-list.txt | -sort | -while read cmd -do - sed -n ' - /^NAME/,/git-'"$cmd"'/H - ${ - x - s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", N_("\1")},/ - p - }' "Documentation/git-$cmd.txt" -done -echo "};" |