diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-03-26 13:15:56 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-03-26 13:15:56 -0700 |
commit | 6beb484f25c9b11baf0edef4bc9cbfa7e3261df6 (patch) | |
tree | 169530977fdbb39df09fea5d684372941af71633 /refs.h | |
parent | 183f88018a849ae755b1efb7b63c58e38368e60f (diff) | |
parent | e4ca819abff48af8e4a10059c88b3b1533b9f994 (diff) | |
download | git-6beb484f25c9b11baf0edef4bc9cbfa7e3261df6.tar.gz git-6beb484f25c9b11baf0edef4bc9cbfa7e3261df6.tar.xz |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |