From 0e804e09938905ed4fe6984f832057267cc5d86f Mon Sep 17 00:00:00 2001 From: Jeff King Date: Tue, 21 Jun 2011 21:27:35 -0400 Subject: archive: provide builtin .tar.gz filter This works exactly as if the user had configured it via: [tar "tgz"] command = gzip -cn [tar "tar.gz"] command = gzip -cn but since it is so common, it's convenient to have it builtin without the user needing to do anything. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- archive-tar.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archive-tar.c') diff --git a/archive-tar.c b/archive-tar.c index 5c30747f9c..f470ebea12 100644 --- a/archive-tar.c +++ b/archive-tar.c @@ -357,6 +357,8 @@ void init_tar_archiver(void) int i; register_archiver(&tar_archiver); + tar_filter_config("tar.tgz.command", "gzip -cn", NULL); + tar_filter_config("tar.tar.gz.command", "gzip -cn", NULL); git_config(git_tar_config, NULL); for (i = 0; i < nr_tar_filters; i++) { /* omit any filters that never had a command configured */ -- cgit v1.2.1