git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] diff_unique_abbrev(): document its assumtion and limitation

From
Jeff King <peff@peff.net>
Date
Oct 1, 2016, 09:15 UTC
Message-ID
<20161001091558.guduirzlkog5fkzd@sigill.intra.peff.net>
In-Reply-To
<xmqqd1jl9ovc.fsf@gitster.mtv.corp.google.com>
On Fri, Sep 30, 2016 at 12:19:51PM -0700, Junio C Hamano wrote:
Show 13 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > ... Now that function _would_
> > want to be updated as a result of the other conversation (it would need
> > to do something sensible with "-1", like turning it into "7", or
> > whatever else is deemed reasonable outside of a repository).
> >
> > Anyway. I just wonder if you want to give it a better name while you are
> > at it.
> 
> I'd say the patch to introduce the new function that makes the old
> name potentially confusing is a good one to do the rename.  Until
> then I do not think there is no need to rename the existing one ;-)

I guess my point was that the poor name may have contributed to the need to explain it. But I'm happy to deal with it in my series (I also updated it to use "struct oid"; I'll probably rebase mine on top of your comment to save you dealing with the nasty merge).

Show 6 quoted lines
> Related tangent about "like turning it into", I am thinking adding
> something like this as a preparatory step to Linus's auto-sizing
> serires.  That way, we do not have to spell "7"
> [...]
> -- >8 --
> Subject: abbrev: add FALLBACK_DEFAULT_ABBREV to prepare for auto sizing
Yep, looks like a good idea.
-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 5 in “diff_unique_abbrev(): document its assumtion and limitation”
  1. diff_unique_abbrev(): document its assumtion and limitationJunio C Hamano, Sep 30, 2016
  2. Jeff KingSep 30, 2016
  3. Junio C HamanoSep 30, 2016
  4. Jeff KingOct 1, 2016
  5. Junio C HamanoOct 3, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.