mirror of
https://github.com/git/git.git
synced 2024-11-05 08:47:56 +01:00
26d744526c
Remove apply, archive, cherry-pick, prune, revert, and show-branch, so "git help" is less intimidating. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
45 lines
500 B
Bash
Executable file
45 lines
500 B
Bash
Executable file
#!/bin/sh
|
|
|
|
echo "/* Automatically generated by $0 */
|
|
struct cmdname_help
|
|
{
|
|
char name[16];
|
|
char help[80];
|
|
};
|
|
|
|
static struct cmdname_help common_cmds[] = {"
|
|
|
|
sort <<\EOF |
|
|
add
|
|
bisect
|
|
branch
|
|
checkout
|
|
clone
|
|
commit
|
|
diff
|
|
fetch
|
|
grep
|
|
init
|
|
log
|
|
merge
|
|
mv
|
|
pull
|
|
push
|
|
rebase
|
|
reset
|
|
rm
|
|
show
|
|
status
|
|
tag
|
|
EOF
|
|
while read cmd
|
|
do
|
|
sed -n '
|
|
/NAME/,/git-'"$cmd"'/H
|
|
${
|
|
x
|
|
s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/
|
|
p
|
|
}' "Documentation/git-$cmd.txt"
|
|
done
|
|
echo "};"
|