summaryrefslogtreecommitdiff
path: root/generate-cmdlist.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-03-09 21:10:50 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-03-09 21:10:50 (GMT)
commitb8cfe290a891611c15bbb79c412d16e57ae8784e (patch)
tree72bd927c4d8e15dce177c98b6d0fe618c155ff20 /generate-cmdlist.sh
parent2acc35b08706234f3762992d431db301ead5797e (diff)
parent7aaa715d0abb12067504af08919197a67a68aca7 (diff)
downloadgit-b8cfe290a891611c15bbb79c412d16e57ae8784e.zip
git-b8cfe290a891611c15bbb79c412d16e57ae8784e.tar.gz
git-b8cfe290a891611c15bbb79c412d16e57ae8784e.tar.bz2
Merge branch 'jc/fsck' into next
* jc/fsck: fsck-objects: Remove --standalone refs.c::do_for_each_ref(): Finish error message lines with "\n" Nicer output from 'git' Use #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) Remove trailing dot after short description Fix some inconsistencies in the docs contrib/git-svn: fix a harmless warning on rebuild (with old repos) contrib/git-svn: remove the --no-stop-on-copy flag contrib/git-svn: fix svn compat and fetch args Don't recurse into parents marked uninteresting. diff-delta: bound hash list length to avoid O(m*n) behavior test-delta needs zlib to compile git-fmt-merge-msg cleanup
Diffstat (limited to 'generate-cmdlist.sh')
-rwxr-xr-xgenerate-cmdlist.sh48
1 files changed, 48 insertions, 0 deletions
diff --git a/generate-cmdlist.sh b/generate-cmdlist.sh
new file mode 100755
index 0000000..6ee85d5
--- /dev/null
+++ b/generate-cmdlist.sh
@@ -0,0 +1,48 @@
+#!/bin/sh
+
+echo "/* Automatically generated by $0 */
+struct cmdname_help
+{
+ char name[16];
+ char help[64];
+};
+
+struct cmdname_help common_cmds[] = {"
+
+sort <<\EOF |
+add
+apply
+bisect
+branch
+checkout
+cherry-pick
+clone
+commit
+diff
+fetch
+grep
+init-db
+log
+merge
+mv
+prune
+pull
+push
+rebase
+reset
+revert
+rm
+show
+show-branch
+status
+tag
+verify-tag
+whatchanged
+EOF
+while read cmd
+do
+ sed -n "/NAME/,/git-$cmd/H;
+ \$ {x; s/.*git-$cmd - \\(.*\\)/ {\"$cmd\", \"\1\"},/; p}" \
+ "Documentation/git-$cmd.txt"
+done
+echo "};"