summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@google.com>2014-11-07 11:39:05 -0800
committerJunio C Hamano <gitster@pobox.com>2014-11-07 15:46:24 -0800
commit1831cf12154a830496e0de70eaaaeb260f465b82 (patch)
tree23f73d29ca7b7e7b0634d3845f5a6948a1bc8647 /refs.h
parent0635b55834b9034d917cb7d70d94b1b7da1453ec (diff)
downloadgit-rs/ref-transaction-rename.tar.gz
refs.c: add an err argument to pack_refsrs/ref-transaction-rename
Signed-off-by: Ronnie Sahlberg <sahlberg@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/refs.h b/refs.h
index b5ba685ec7..489aa9d1d9 100644
--- a/refs.h
+++ b/refs.h
@@ -130,8 +130,9 @@ extern void warn_dangling_symrefs(FILE *fp, const char *msg_fmt, const struct st
/*
* Write a packed-refs file for the current repository.
* flags: Combination of the above PACK_REFS_* flags.
+ * Returns 0 on success and fills in err on failure.
*/
-int pack_refs(unsigned int flags);
+int pack_refs(unsigned int flags, struct strbuf *err);
extern int ref_exists(const char *);