Merge branch 'jc/reflog-reverse-walk'
commit6beb484f25c9b11baf0edef4bc9cbfa7e3261df6
authorJunio C Hamano <gitster@pobox.com>
Tue, 26 Mar 2013 20:15:56 +0000 (26 13:15 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Mar 2013 20:15:56 +0000 (26 13:15 -0700)
tree169530977fdbb39df09fea5d684372941af71633
parent183f88018a849ae755b1efb7b63c58e38368e60f
parente4ca819abff48af8e4a10059c88b3b1533b9f994
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
refs.c
refs.h
sha1_name.c