]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
Introduce for_each_recent_reflog_ent().
authorJunio C Hamano <gitster@pobox.com>
Tue, 20 Jan 2009 06:18:29 +0000 (22:18 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Jan 2009 06:18:29 +0000 (22:18 -0800)
commit101d15e09712a0183db99d228d975c62970654cf
tree794021ad7ade07c4835ec9c356930c637da26df7
parent39765e5941d36f74cec4764d315da0ba5743547c
Introduce for_each_recent_reflog_ent().

This can be used to scan only the last few kilobytes of a reflog, as a
cheap optimization when the data you are looking for is likely to be
found near the end of it.  The caller is expected to fall back to the
full scan if that is not the case.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c
refs.h
sha1_name.c