Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 31 lines (24 sloc) 0.927 kb
4df096a Add git-archive
Franck Bui-Huu authored
1 #ifndef ARCHIVE_H
2 #define ARCHIVE_H
3
4 struct archiver_args {
5 const char *base;
d53fe81 archive: add baselen member to struct archiver_args
René Scharfe authored
6 size_t baselen;
4df096a Add git-archive
Franck Bui-Huu authored
7 struct tree *tree;
8 const unsigned char *commit_sha1;
8460b2f archive: specfile support (--pretty=format: in archive files)
René Scharfe authored
9 const struct commit *commit;
4df096a Add git-archive
Franck Bui-Huu authored
10 time_t time;
11 const char **pathspec;
e0ffb24 Add --verbose to git-archive
Junio C Hamano authored
12 unsigned int verbose : 1;
ba053ea @pclouds archive: do not read .gitattributes in working directory
pclouds authored
13 unsigned int worktree_attributes : 1;
3a176c6 archive: make zip compression level independent from core git
René Scharfe authored
14 int compression_level;
4df096a Add git-archive
Franck Bui-Huu authored
15 };
16
17 typedef int (*write_archive_fn_t)(struct archiver_args *);
18
562e25a archive: centralize archive entry writing
René Scharfe authored
19 typedef int (*write_archive_entry_fn_t)(struct archiver_args *args, const unsigned char *sha1, const char *path, size_t pathlen, unsigned int mode, void *buffer, unsigned long size);
20
efd8696 git-archive: wire up TAR format.
Franck Bui-Huu authored
21 /*
22 * Archive-format specific backends.
23 */
24 extern int write_tar_archive(struct archiver_args *);
ec06bff git-archive: wire up ZIP format.
Franck Bui-Huu authored
25 extern int write_zip_archive(struct archiver_args *);
4df096a Add git-archive
Franck Bui-Huu authored
26
562e25a archive: centralize archive entry writing
René Scharfe authored
27 extern int write_archive_entries(struct archiver_args *args, write_archive_entry_fn_t write_entry);
6e94e68 archive: add write_archive()
Rene Scharfe authored
28 extern int write_archive(int argc, const char **argv, const char *prefix, int setup_prefix);
562e25a archive: centralize archive entry writing
René Scharfe authored
29
4df096a Add git-archive
Franck Bui-Huu authored
30 #endif /* ARCHIVE_H */
Something went wrong with that request. Please try again.