Re: [PATCH] notes: Use get_sha1_committish instead of read_ref in init_notes()
- From
Jeff King <peff@peff.net>
- Date
- Jun 17, 2015, 16:35 UTC
- Message-ID
- <20150617163536.GA22689@peff.net>
- In-Reply-To
- <20150617090246.GC30948@glandium.org>
On Wed, Jun 17, 2015 at 06:02:46PM +0900, Mike Hommey wrote:
Show 13 quoted lines
> > In a sense that is weirdly broken already: > > > > $ git log --notes=:/foo >/dev/null > > warning: notes ref refs/notes/:/foo is invalid > > > > but I wonder if we should be making expand_notes_ref a little more > > careful as part of the same topic. > > Interestingly, now that I look, there's also this: > https://github.com/git/git/blob/master/notes-cache.c#L40 > > that doesn't use expand_notes_ref, but it's apparently only used in > userdiff_get_textconv, and I'm not sure why.
notes-cache.c predates expand_notes_ref. I don't think it's a big deal. The implementation of notes-cache is an internal detail (the user interacts with it by setting diff.*.cacheTextConv, and then git handles the cache).
-Peff