summaryrefslogtreecommitdiff
path: root/archive.h
diff options
context:
space:
mode:
authorRene Scharfe <rene.scharfe@lsrfire.ath.cx>2008-07-25 10:41:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-07-26 00:16:12 (GMT)
commit6e94e6835f397cd2602ca1eb12002e51aa6b0500 (patch)
tree243d614ba5341500b1b5ea3994e106cdb85f1e21 /archive.h
parentd3296e37b61fdd80a8b785270b1d11db34dab2f5 (diff)
downloadgit-6e94e6835f397cd2602ca1eb12002e51aa6b0500.zip
git-6e94e6835f397cd2602ca1eb12002e51aa6b0500.tar.gz
git-6e94e6835f397cd2602ca1eb12002e51aa6b0500.tar.bz2
archive: add write_archive()
Both archive and upload-archive have to parse command line arguments and then call the archiver specific write function. Move the duplicate code to a new function, write_archive(). Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive.h')
-rw-r--r--archive.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/archive.h b/archive.h
index 4a02371..6b5fe5a 100644
--- a/archive.h
+++ b/archive.h
@@ -41,5 +41,6 @@ extern int write_tar_archive(struct archiver_args *);
extern int write_zip_archive(struct archiver_args *);
extern int write_archive_entries(struct archiver_args *args, write_archive_entry_fn_t write_entry);
+extern int write_archive(int argc, const char **argv, const char *prefix, int setup_prefix);
#endif /* ARCHIVE_H */