git-svn init/clone --stdlayout option to default-init trunk/tags/branches
[git/mingw/4msysgit/wingit-dll.git] / generate-cmdlist.sh
blob17df47b95067449f03039b8ecd7715701302fa68
1 #!/bin/sh
3 echo "/* Automatically generated by $0 */
4 struct cmdname_help
6 char name[16];
7 char help[80];
8 };
10 static struct cmdname_help common_cmds[] = {"
12 sort <<\EOF |
13 add
14 apply
15 archive
16 bisect
17 branch
18 checkout
19 cherry-pick
20 clone
21 commit
22 diff
23 fetch
24 grep
25 init
26 log
27 merge
29 prune
30 pull
31 push
32 rebase
33 reset
34 revert
36 show
37 show-branch
38 status
39 tag
40 EOF
41 while read cmd
43 sed -n '
44 /NAME/,/git-'"$cmd"'/H
47 s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/
49 }' "Documentation/git-$cmd.txt"
50 done
51 echo "};"