summaryrefslogtreecommitdiff
path: root/src/pack-objects.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-01-22 17:34:36 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2022-01-23 09:48:20 -0500
commit69ca594bafd438fea419b1ebe757a9d13da4d254 (patch)
treeb7b760bb90311ee4cd511d697d54c1ff8a1d97a8 /src/pack-objects.h
parent55eb096b93d4e658bfc0d19270b56f00dff9ec0d (diff)
downloadlibgit2-ethomson/oid_cleanups.tar.gz
packbuilder: use the packfile name instead of hashethomson/oid_cleanups
Deprecate the `git_packfile_hash` function. Callers should use the new `git_packfile_name` function which provides a unique packfile name.
Diffstat (limited to 'src/pack-objects.h')
-rw-r--r--src/pack-objects.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pack-objects.h b/src/pack-objects.h
index cefee40ef..53c9f5d45 100644
--- a/src/pack-objects.h
+++ b/src/pack-objects.h
@@ -73,7 +73,10 @@ struct git_packbuilder {
git_oidmap *walk_objects;
git_pool object_pool;
+#ifndef GIT_DEPRECATE_HARD
git_oid pack_oid; /* hash of written pack */
+#endif
+ char *pack_name; /* name of written pack */
/* synchronization objects */
git_mutex cache_mutex;