summaryrefslogtreecommitdiff
path: root/generate-cmdlist.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-12-02 07:39:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-12-02 07:48:28 (GMT)
commit79d30668ab5c5e029c89c8aa2e466d2320658f5a (patch)
treeb77a5494a9f126e044b23a682b51cde71614a3c1 /generate-cmdlist.sh
parentca8c8c56860e93de4fc3acc9d66b2269a9ccc2f1 (diff)
downloadgit-79d30668ab5c5e029c89c8aa2e466d2320658f5a.zip
git-79d30668ab5c5e029c89c8aa2e466d2320658f5a.tar.gz
git-79d30668ab5c5e029c89c8aa2e466d2320658f5a.tar.bz2
Consolidate command list to one.
The categorized list of commands in git(7) and the list of common commands in "git help" output were maintained separately, which was insane. This consolidates them to a single command-list.txt file. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'generate-cmdlist.sh')
-rwxr-xr-xgenerate-cmdlist.sh25
1 files changed, 2 insertions, 23 deletions
diff --git a/generate-cmdlist.sh b/generate-cmdlist.sh
index 1ba27ec..a2913c2 100755
--- a/generate-cmdlist.sh
+++ b/generate-cmdlist.sh
@@ -9,29 +9,8 @@ struct cmdname_help
static struct cmdname_help common_cmds[] = {"
-sort <<\EOF |
-add
-bisect
-branch
-checkout
-clone
-commit
-diff
-fetch
-grep
-init
-log
-merge
-mv
-pull
-push
-rebase
-reset
-rm
-show
-status
-tag
-EOF
+sed -n -e 's/^git-\([^ ]*\)[ ].* common.*/\1/p' command-list.txt |
+sort |
while read cmd
do
sed -n '