summaryrefslogtreecommitdiff
path: root/archive.h
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2020-09-19 23:23:42 +0200
committerJunio C Hamano <gitster@pobox.com>2020-09-19 15:56:06 -0700
commit2947a7930d2864cfbc3f9815959cd6539e2ea9ad (patch)
treef7c0ead6a43ad6eb6b9e167020eb561370043935 /archive.h
parent200589abcb4d7f107ed9da85e43b9a7268016c23 (diff)
downloadgit-2947a7930d2864cfbc3f9815959cd6539e2ea9ad.tar.gz
archive: add --add-file
Allow users to append non-tracked files. This simplifies the generation of source packages with a few extra files, e.g. containing version information. They get the same access times and user information as tracked files. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive.h')
-rw-r--r--archive.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/archive.h b/archive.h
index d83b41a01f..82b226011a 100644
--- a/archive.h
+++ b/archive.h
@@ -9,6 +9,7 @@ struct repository;
struct archiver_args {
struct repository *repo;
const char *refname;
+ const char *prefix;
const char *base;
size_t baselen;
struct tree *tree;
@@ -20,6 +21,7 @@ struct archiver_args {
unsigned int worktree_attributes : 1;
unsigned int convert : 1;
int compression_level;
+ struct string_list extra_files;
};
/* main api */