8 const unsigned char *commit_sha1
;
9 const struct commit
*commit
;
11 const char **pathspec
;
12 unsigned int verbose
: 1;
13 unsigned int worktree_attributes
: 1;
14 int compression_level
;
17 #define ARCHIVER_WANT_COMPRESSION_LEVELS 1
20 int (*write_archive
)(const struct archiver
*, struct archiver_args
*);
24 extern void register_archiver(struct archiver
*);
26 extern void init_tar_archiver(void);
27 extern void init_zip_archiver(void);
29 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
);
31 extern int write_archive_entries(struct archiver_args
*args
, write_archive_entry_fn_t write_entry
);
32 extern int write_archive(int argc
, const char **argv
, const char *prefix
, int setup_prefix
);
34 #endif /* ARCHIVE_H */