]>
Commit | Line | Data |
---|---|---|
a87cd02c FK |
1 | #!/bin/sh |
2 | ||
3 | echo "/* Automatically generated by $0 */ | |
4 | struct cmdname_help | |
5 | { | |
6 | char name[16]; | |
5d7eeee2 | 7 | char help[80]; |
a87cd02c FK |
8 | }; |
9 | ||
10 | struct cmdname_help common_cmds[] = {" | |
11 | ||
12 | sort <<\EOF | | |
13 | add | |
14 | apply | |
4df096a5 | 15 | archive |
a87cd02c FK |
16 | bisect |
17 | branch | |
18 | checkout | |
19 | cherry-pick | |
20 | clone | |
21 | commit | |
22 | diff | |
23 | fetch | |
24 | grep | |
5c94f87e | 25 | init |
a87cd02c FK |
26 | log |
27 | merge | |
28 | mv | |
29 | prune | |
30 | pull | |
31 | push | |
32 | rebase | |
33 | reset | |
34 | revert | |
35 | rm | |
36 | show | |
37 | show-branch | |
38 | status | |
39 | tag | |
a87cd02c FK |
40 | EOF |
41 | while read cmd | |
42 | do | |
fd662dd5 JH |
43 | sed -n ' |
44 | /NAME/,/git-'"$cmd"'/H | |
45 | ${ | |
46 | x | |
47 | s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/ | |
48 | p | |
49 | }' "Documentation/git-$cmd.txt" | |
a87cd02c FK |
50 | done |
51 | echo "};" |