2006-03-09 17:24:19 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
echo "/* Automatically generated by $0 */
|
|
|
|
struct cmdname_help
|
|
|
|
{
|
|
|
|
char name[16];
|
2006-12-14 11:31:05 +01:00
|
|
|
char help[80];
|
2006-03-09 17:24:19 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
struct cmdname_help common_cmds[] = {"
|
|
|
|
|
|
|
|
sort <<\EOF |
|
|
|
|
add
|
|
|
|
apply
|
Add git-archive
git-archive is a command to make TAR and ZIP archives of a git tree.
It helps prevent a proliferation of git-{format}-tree commands.
Instead of directly calling git-{tar,zip}-tree command, it defines
a very simple API, that archiver should implement and register in
"git-archive.c". This API is made up by 2 functions whose prototype
is defined in "archive.h" file.
- The first one is used to parse 'extra' parameters which have
signification only for the specific archiver. That would allow
different archive backends to have different kind of options.
- The second one is used to ask to an archive backend to build
the archive given some already resolved parameters.
The main reason for making this API is to avoid using
git-{tar,zip}-tree commands, hence making them useless. Maybe it's
time for them to die ?
It also implements remote operations by defining a very simple
protocol: it first sends the name of the specific uploader followed
the repository name (git-upload-tar git://example.org/repo.git).
Then it sends options. It's done by sending a sequence of one
argument per packet, with prefix "argument ", followed by a flush.
The remote protocol is implemented in "git-archive.c" for client
side and is triggered by "--remote=<repo>" option. For example,
to fetch a TAR archive in a remote repo, you can issue:
$ git archive --format=tar --remote=git://xxx/yyy/zzz.git HEAD
We choose to not make a new command "git-fetch-archive" for example,
avoind one more GIT command which should be nice for users (less
commands to remember, keeps existing --remote option).
Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com>
Acked-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-09-07 15:12:02 +02:00
|
|
|
archive
|
2006-03-09 17:24:19 +01:00
|
|
|
bisect
|
|
|
|
branch
|
|
|
|
checkout
|
|
|
|
cherry-pick
|
|
|
|
clone
|
|
|
|
commit
|
|
|
|
diff
|
|
|
|
fetch
|
|
|
|
grep
|
2007-01-12 22:01:46 +01:00
|
|
|
init
|
2006-03-09 17:24:19 +01:00
|
|
|
log
|
|
|
|
merge
|
|
|
|
mv
|
|
|
|
prune
|
|
|
|
pull
|
|
|
|
push
|
|
|
|
rebase
|
|
|
|
reset
|
|
|
|
revert
|
|
|
|
rm
|
|
|
|
show
|
|
|
|
show-branch
|
|
|
|
status
|
|
|
|
tag
|
|
|
|
EOF
|
|
|
|
while read cmd
|
|
|
|
do
|
2006-03-20 08:54:45 +01:00
|
|
|
sed -n '
|
|
|
|
/NAME/,/git-'"$cmd"'/H
|
|
|
|
${
|
|
|
|
x
|
|
|
|
s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/
|
|
|
|
p
|
|
|
|
}' "Documentation/git-$cmd.txt"
|
2006-03-09 17:24:19 +01:00
|
|
|
done
|
|
|
|
echo "};"
|