From 008d896df5deaa967d4d86306b408333e8ef34c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Scharfe?= Date: Sun, 8 Jun 2008 18:42:33 +0200 Subject: Teach new attribute 'export-ignore' to git-archive Paths marked with this attribute are not output to git-archive output. Signed-off-by: Rene Scharfe 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 d7598f907..99db58f1c 100644 --- a/archive-tar.c +++ b/archive-tar.c @@ -247,6 +247,8 @@ static int write_tar_entry(const unsigned char *sha1, strbuf_grow(&path, PATH_MAX); strbuf_add(&path, base, baselen); strbuf_addstr(&path, filename); + if (is_archive_path_ignored(path.buf + base_len)) + return 0; if (S_ISDIR(mode) || S_ISGITLINK(mode)) { strbuf_addch(&path, '/'); buffer = NULL; -- cgit v1.2.1