git-archive: wire up TAR format.

This is based on Rene Scharfe's earlier patch, but uses the
archiver support introduced by the previous patch.

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>
This commit is contained in:
Franck Bui-Huu
2006-09-07 15:12:03 +02:00
committed by Junio C Hamano
parent 4df096a5ca
commit efd8696cd7
3 changed files with 72 additions and 1 deletions

View File

@ -15,7 +15,7 @@ static const char archive_usage[] = \
"git-archive --format=<fmt> [--prefix=<prefix>/] [<extra>] <tree-ish> [path...]";
struct archiver archivers[] = {
{ "" /* dummy */ },
{ .name = "tar", .write_archive = write_tar_archive },
};
static int run_remote_archiver(struct archiver *ar, int argc,