repo.or.cz
/
alt-git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
xdiff: Match GNU diff behaviour when deciding hunk comment worthiness of lines
[alt-git.git]
/
generate-cmdlist.sh
blob
5450918be339bf101a6562d518c0f4cc7b37c0f2
1
#!/bin/sh
2
3
echo
"/* Automatically generated by
$0
*/
4
struct cmdname_help
5
{
6
char name[16];
7
char help[64];
8
};
9
10
struct cmdname_help common_cmds[] = {"
11
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-db
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
40
verify-tag
41
EOF
42
while
read
cmd
43
do
44
sed
-n
'
45
/NAME/,/git-'
"
$cmd
"
'/H
46
${
47
x
48
s/.*git-'
"
$cmd
"
' - \(.*\)/ {"'
"
$cmd
"
'", "\1"},/
49
p
50
}'
"Documentation/git-
$cmd
.txt"
51
done
52
echo
"};"