aboutsummaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-06-21 06:02:41 -0700
committerJunio C Hamano <gitster@pobox.com>2010-06-21 06:02:41 -0700
commit5bebcd4ecba0791cecaa49d30ddd7ca8ffe03627 (patch)
treea45f037dd501845eabe6f66bda45547ca63a3c9d /refs.h
parent8c6b5a84547506c1cfabb966f27a10f5659e7e0b (diff)
parent157aaea5fff7dbf2fc39829d827b35df647562a4 (diff)
downloadgit-5bebcd4ecba0791cecaa49d30ddd7ca8ffe03627.tar.xz
Merge branch 'em/checkout-orphan'
* em/checkout-orphan: log_ref_setup: don't return stack-allocated array bash completion: add --orphan to 'git checkout' t3200: test -l with core.logAllRefUpdates options checkout --orphan: respect -l option always refs: split log_ref_write logic into log_ref_setup Documentation: alter checkout --orphan description
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/refs.h b/refs.h
index 4a18b083f5..762ce504b5 100644
--- a/refs.h
+++ b/refs.h
@@ -68,6 +68,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. **/
+int log_ref_setup(const char *ref_name, char *logfile, int bufsize);
+
/** Reads log for the value of ref during at_time. **/
extern int read_ref_at(const char *ref, unsigned long at_time, int cnt, unsigned char *sha1, char **msg, unsigned long *cutoff_time, int *cutoff_tz, int *cutoff_cnt);