diff options
| author | Junio C Hamano <gitster@pobox.com> | 2010-06-21 06:02:41 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2010-06-21 06:02:41 -0700 |
| commit | 5bebcd4ecba0791cecaa49d30ddd7ca8ffe03627 (patch) | |
| tree | a45f037dd501845eabe6f66bda45547ca63a3c9d /refs.h | |
| parent | 8c6b5a84547506c1cfabb966f27a10f5659e7e0b (diff) | |
| parent | 157aaea5fff7dbf2fc39829d827b35df647562a4 (diff) | |
| download | git-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |
