Staging
v0.5.1
https://github.com/git/git
Revision f48a203a563ae8a46daa8b8923b5d81dc40502fb authored by Junio C Hamano on 25 July 2007, 04:39:33 UTC, committed by Junio C Hamano on 25 July 2007, 07:06:53 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent ceefa44
Raw File
Tip revision: f48a203a563ae8a46daa8b8923b5d81dc40502fb authored by Junio C Hamano on 25 July 2007, 04:39:33 UTC
GIT 1.5.3-rc3
Tip revision: f48a203
generate-cmdlist.sh
#!/bin/sh

echo "/* Automatically generated by $0 */
struct cmdname_help
{
    char name[16];
    char help[80];
};

static struct cmdname_help common_cmds[] = {"

sort <<\EOF |
add
apply
archive
bisect
branch
checkout
cherry-pick
clone
commit
diff
fetch
grep
init
log
merge
mv
prune
pull
push
rebase
reset
revert
rm
show
show-branch
status
tag
EOF
while read cmd
do
     sed -n '
     /NAME/,/git-'"$cmd"'/H
     ${
            x
            s/.*git-'"$cmd"' - \(.*\)/  {"'"$cmd"'", "\1"},/
	    p
     }' "Documentation/git-$cmd.txt"
done
echo "};"
back to top