summaryrefslogtreecommitdiff
path: root/archive.h
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-03-12 02:27:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-14 16:23:48 (GMT)
commit015ff4f8225841d791c9940d71ebbce82c978a3c (patch)
tree947a476d1e9cd005038eab7cf0acb0b9a84dfeed /archive.h
parenteedc994f18b608a805b31db0d40c13cce1b970fb (diff)
downloadgit-015ff4f8225841d791c9940d71ebbce82c978a3c.zip
git-015ff4f8225841d791c9940d71ebbce82c978a3c.tar.gz
git-015ff4f8225841d791c9940d71ebbce82c978a3c.tar.bz2
archive: convert write_archive_entry_fn_t to object_id
Convert the write_archive_entry_fn_t type to use a pointer to struct object_id. Convert various static functions in the tar and zip archivers also. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive.h')
-rw-r--r--archive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/archive.h b/archive.h
index 62d1d82..741991b 100644
--- a/archive.h
+++ b/archive.h
@@ -31,7 +31,7 @@ extern void init_tar_archiver(void);
extern void init_zip_archiver(void);
typedef int (*write_archive_entry_fn_t)(struct archiver_args *args,
- const unsigned char *sha1,
+ const struct object_id *oid,
const char *path, size_t pathlen,
unsigned int mode);