aboutsummaryrefslogtreecommitdiff
path: root/archive-zip.c
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2008-06-08 18:42:33 +0200
committerJunio C Hamano <gitster@pobox.com>2008-06-09 14:53:46 -0700
commit008d896df5deaa967d4d86306b408333e8ef34c3 (patch)
treec2b7aeaa45767e1c4e6359381b2bd99bd77dbebc /archive-zip.c
parent457bb452919887ff5e8007d02e93f443fdb6f1e9 (diff)
downloadgit-008d896df5deaa967d4d86306b408333e8ef34c3.tar.gz
git-008d896df5deaa967d4d86306b408333e8ef34c3.tar.xz
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 <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive-zip.c')
-rw-r--r--archive-zip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/archive-zip.c b/archive-zip.c
index 18c0f8710..5742762ac 100644
--- a/archive-zip.c
+++ b/archive-zip.c
@@ -176,6 +176,8 @@ static int write_zip_entry(const unsigned char *sha1,
crc = crc32(0, NULL, 0);
path = construct_path(base, baselen, filename, S_ISDIR(mode), &pathlen);
+ if (is_archive_path_ignored(path + base_len))
+ return 0;
if (verbose)
fprintf(stderr, "%s\n", path);
if (pathlen > 0xffff) {