summaryrefslogtreecommitdiff
path: root/refs/packed-backend.h
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2017-06-23 09:01:39 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-06-23 13:27:33 -0700
commit3478983b517bd62cf2a5c9523815e5e5318a9477 (patch)
treeb8a224e43fd6c00c6466552a3a6cb4b38de540d8 /refs/packed-backend.h
parentpacked_ref_store: make class into a subclass of `ref_store` (diff)
downloadtgif-3478983b517bd62cf2a5c9523815e5e5318a9477.tar.xz
commit_packed_refs(): report errors rather than dying
Report errors via a `struct strbuf *err` rather than by calling `die()`. To enable this goal, change `write_packed_entry()` to report errors via a return value and `errno` rather than dying. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/packed-backend.h')
-rw-r--r--refs/packed-backend.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs/packed-backend.h b/refs/packed-backend.h
index beea9c14b5..3d4057b65b 100644
--- a/refs/packed-backend.h
+++ b/refs/packed-backend.h
@@ -14,7 +14,7 @@ int lock_packed_refs(struct ref_store *ref_store, int flags);
void add_packed_ref(struct ref_store *ref_store,
const char *refname, const struct object_id *oid);
-int commit_packed_refs(struct ref_store *ref_store);
+int commit_packed_refs(struct ref_store *ref_store, struct strbuf *err);
int repack_without_refs(struct ref_store *ref_store,
struct string_list *refnames, struct strbuf *err);