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