path: root/refs.h
diff options
authorJunio C Hamano <>2006-10-06 06:16:15 (GMT)
committerJunio C Hamano <>2006-10-06 06:17:11 (GMT)
commitab2a1a32ffa5a39aaf4204bd717562bce49e0a36 (patch)
tree21b6b7f63d6e74f023df5d338282b0a75df55c35 /refs.h
parent422b4a0e03658d0933a7abc149f175735ea9c4b5 (diff)
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} Since small integers alone are invalid input strings to approxidate, there is no fear of confusion. Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'refs.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.h b/refs.h
index 0d4d79e..a57d437 100644
--- a/refs.h
+++ b/refs.h
@@ -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);