Revision 3d80017d0c948cca251a7aaa9fdc84a0664e95fe authored by Junio C Hamano on 12 September 2007, 20:07:06 UTC, committed by Junio C Hamano on 12 September 2007, 20:07:06 UTC
* sp/maint-no-thin:
  Make --no-thin the default in git-push to save server resources
2 parent s 6143fa2 + a4503a1
Raw File
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