Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH v2 3/4] status: show more info than "currently not on any branch"

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:56:20

Duy Nguyen [off-list ref] writes:
quoted
It should be more like this, I would think:

        for_each_recent_reflog_ent();
        if (!found)
                for_each_reflog_ent();
        if (!found)
                return;
Yes. This "recent" optimization is tricky.
Not really.  What is tricky is that reflog is an append-only file
and we only have an API to let us read it in the oldest to newer
order, which is natural for the file format, but unsuited for the
purpose of finding out nth most recent anything.

See the other thread I am going to send out soon on this.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help