summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-03-26 13:15:56 -0700
committerJunio C Hamano <gitster@pobox.com>2013-03-26 13:15:56 -0700
commit6beb484f25c9b11baf0edef4bc9cbfa7e3261df6 (patch)
tree169530977fdbb39df09fea5d684372941af71633 /refs.h
parent183f88018a849ae755b1efb7b63c58e38368e60f (diff)
parente4ca819abff48af8e4a10059c88b3b1533b9f994 (diff)
downloadgit-6beb484f25c9b11baf0edef4bc9cbfa7e3261df6.tar.gz
Merge branch 'jc/reflog-reverse-walk'
An internal function used to implement "git checkout @{-1}" was hard to use correctly. * jc/reflog-reverse-walk: refs.c: fix fread error handling reflog: add for_each_reflog_ent_reverse() API for_each_recent_reflog_ent(): simplify opening of a reflog file for_each_reflog_ent(): extract a helper to process a single entry
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.h b/refs.h
index 1b2e2d3a98..a35eafc4ee 100644
--- a/refs.h
+++ b/refs.h
@@ -103,7 +103,7 @@ extern int read_ref_at(const char *refname, unsigned long at_time, int cnt,
/* iterate over reflog entries */
typedef int each_reflog_ent_fn(unsigned char *osha1, unsigned char *nsha1, const char *, unsigned long, int, const char *, void *);
int for_each_reflog_ent(const char *refname, each_reflog_ent_fn fn, void *cb_data);
-int for_each_recent_reflog_ent(const char *refname, each_reflog_ent_fn fn, long, void *cb_data);
+int for_each_reflog_ent_reverse(const char *refname, each_reflog_ent_fn fn, void *cb_data);
/*
* Calls the specified function for each reflog file until it returns nonzero,