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

Re: [PATCHv4 08/12] Teach the notes lookup code to parse notes trees with various fanout schemes

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:47:19

Sverre Rabbelier [off-list ref] writes:
On Thu, Aug 27, 2009 at 20:02, Junio C Hamano[off-list ref] wrote:
quoted
In such a case would you rather want to see the commit itself first, or at
least, commit _and_ notes _together_?
Assuming you do download all notes, I think it would be nice to be
able to read the note; and since there's no way to download the commit
separately it would require one to guess which head the commit belongs
to and fetch the entire branch...?
Some random thoughts...

 * If there are very many branches (in the worst case, they are so many
   that the upstream uses the expand extention to serve the project),
   maybe the notes namespace will also have many branches.  It is unclear
   how a user is expected to know which notes branch a note to a
   particular commit is to be found.

 * Perhaps to solve that problem, such a project may use notes in the
   corresponding "notes branch"?  Then your assumption does not hold, as
   you first guess which notes branch to fetch to find the note that may
   not even exist for this issue to become a real problem.

 * If you assume all the notes are downloaded in such a project, you can
   still go through all the top-level trees (that are date based fan-out)
   and find the note to the commit object you do not have.  At that point,
   it only becomes performance issue for an unusual case where you have
   a note but the commit the note applies to.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help