summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@google.com>2014-06-20 14:42:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-07-14 18:54:41 (GMT)
commitbd3b02daec241651231f63b3fd8ee2a8ea1dac68 (patch)
tree40fd6fc34408de07203b293c1835c212e7340741 /refs.h
parent60bca085c893f1866829b55bfee63888943cfe14 (diff)
downloadgit-bd3b02daec241651231f63b3fd8ee2a8ea1dac68.zip
git-bd3b02daec241651231f63b3fd8ee2a8ea1dac68.tar.gz
git-bd3b02daec241651231f63b3fd8ee2a8ea1dac68.tar.bz2
refs.c: make sure log_ref_setup returns a meaningful errno
Making errno when returning from log_ref_setup() meaningful, Signed-off-by: Ronnie Sahlberg <sahlberg@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> Acked-by: Michael Haggerty <mhagger@alum.mit.edu>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/refs.h b/refs.h
index 65f7637..82cc5cb 100644
--- a/refs.h
+++ b/refs.h
@@ -158,7 +158,9 @@ extern void unlock_ref(struct ref_lock *lock);
/** Writes sha1 into the ref specified by the lock. **/
extern int write_ref_sha1(struct ref_lock *lock, const unsigned char *sha1, const char *msg);
-/** Setup reflog before using. **/
+/*
+ * Setup reflog before using. Set errno to something meaningful on failure.
+ */
int log_ref_setup(const char *refname, char *logfile, int bufsize);
/** Reads log for the value of ref during at_time. **/