Re: [PATCH] Introduce for_each_recent_reflog_ent().
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 20, 2009, 10:15 UTC
- Message-ID
- <alpine.DEB.1.00.0901201114250.3586@pacific.mpi-cbg.de>
- In-Reply-To
- <7vpriimr93.fsf_-_@gitster.siamese.dyndns.org>
Hi,
On Mon, 19 Jan 2009, Junio C Hamano wrote:
> 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.
FWIW I really like it, as it works around mmap() nicely.
Ciao, Dscho