diff options
author | Junio C Hamano <junkio@cox.net> | 2006-10-06 08:16:15 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-10-06 08:17:11 +0200 |
commit | ab2a1a32ffa5a39aaf4204bd717562bce49e0a36 (patch) | |
tree | 21b6b7f63d6e74f023df5d338282b0a75df55c35 /refs.h | |
parent | pack-refs: call fflush before fsync. (diff) | |
download | git-ab2a1a32ffa5a39aaf4204bd717562bce49e0a36.tar.xz git-ab2a1a32ffa5a39aaf4204bd717562bce49e0a36.zip |
ref-log: allow ref@{count} syntax.
Often I find myself wanting to say 'tip of "next" before I
merged the last three topics'. Now I can say that with:
git log next@{3}..next
Since small integers alone are invalid input strings to
approxidate, there is no fear of confusion.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'refs.h')
-rw-r--r-- | refs.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -39,7 +39,7 @@ extern void unlock_ref(struct ref_lock *lock); extern int write_ref_sha1(struct ref_lock *lock, const unsigned char *sha1, const char *msg); /** Reads log for the value of ref during at_time. **/ -extern int read_ref_at(const char *ref, unsigned long at_time, unsigned char *sha1); +extern int read_ref_at(const char *ref, unsigned long at_time, int cnt, unsigned char *sha1); /** Returns 0 if target has the right format for a ref. **/ extern int check_ref_format(const char *target); |