author | Junio C Hamano <gitster@pobox.com> | |
Tue, 20 Jan 2009 06:18:29 +0000 (22:18 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 20 Jan 2009 06:18:29 +0000 (22:18 -0800) | ||
commit | 101d15e09712a0183db99d228d975c62970654cf | |
tree | 794021ad7ade07c4835ec9c356930c637da26df7 | tree | snapshot |
parent | 39765e5941d36f74cec4764d315da0ba5743547c | commit | diff |
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>
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 | diff | blob | history | |
refs.h | diff | blob | history | |
sha1_name.c | diff | blob | history |