Code

archive: implement configurable tar filters
authorJeff King <peff@peff.net>
Wed, 22 Jun 2011 01:26:31 +0000 (21:26 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Jun 2011 18:12:35 +0000 (11:12 -0700)
commit767cf4579f0e34a3cfc6704d5c313842321dfafa
tree737f83a9a1173e3e74c94914b78d07a801e9f8c6
parent08716b3c11f4899c1be046eca735761b30ca686d
archive: implement configurable tar filters

It's common to pipe the tar output produce by "git archive"
through gzip or some other compressor. Locally, this can
easily be done by using a shell pipe. When requesting a
remote archive, though, it cannot be done through the
upload-archive interface.

This patch allows configurable tar filters, so that one
could define a "tar.gz" format that automatically pipes tar
output through gzip.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-archive.txt
archive-tar.c
t/t5000-tar-tree.sh