repo.or.cz
/
git
/
jrn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
t7001: add test for git-mv dir1 dir2/
[git/jrn.git]
/
generate-cmdlist.sh
blob
ec1eda20de8d510a9acfd981150a5f1a438a0fe4
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
bisect
16
branch
17
checkout
18
cherry-pick
19
clone
20
commit
21
diff
22
fetch
23
grep
24
init-db
25
log
26
merge
27
mv
28
prune
29
pull
30
push
31
rebase
32
reset
33
revert
34
rm
35
show
36
show-branch
37
status
38
tag
39
verify-tag
40
EOF
41
while
read
cmd
42
do
43
sed
-n
'
44
/NAME/,/git-'
"
$cmd
"
'/H
45
${
46
x
47
s/.*git-'
"
$cmd
"
' - \(.*\)/ {"'
"
$cmd
"
'", "\1"},/
48
p
49
}'
"Documentation/git-
$cmd
.txt"
50
done
51
echo
"};"