diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-06-23 09:01:39 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-23 22:27:33 +0200 |
commit | 3478983b517bd62cf2a5c9523815e5e5318a9477 (patch) | |
tree | b8a224e43fd6c00c6466552a3a6cb4b38de540d8 /refs/packed-backend.h | |
parent | packed_ref_store: make class into a subclass of `ref_store` (diff) | |
download | git-3478983b517bd62cf2a5c9523815e5e5318a9477.tar.xz git-3478983b517bd62cf2a5c9523815e5e5318a9477.zip |
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 '')
-rw-r--r-- | refs/packed-backend.h | 2 |
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); |