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

Re: [PATCH 3/3] git abbref-ref: new porcelain for abbreviate_ref()

From
Bert Wesarg <bert.wesarg@googlemail.com>
Date
Sep 22, 2008, 16:43 UTC
Message-ID
<36ca99e90809220943i696c6c7ep2da2225e8a489769@mail.gmail.com>
In-Reply-To
<20080922153222.GD3669@spearce.org>
On Mon, Sep 22, 2008 at 17:32, Shawn O. Pearce <spearce@spearce.org> wrote:
Show 10 quoted lines
> Bert Wesarg <bert.wesarg@googlemail.com> wrote:
>> This gives direct access to the abbreviate_ref() function. The operation
>> mode defaults to the core.warnambiguousrefs value, like the refname:short
>> format, but can be explicitly changed with the --{,no}-strict option.
>>
>> The bash completion script utilizes this new command.
>
> And it slows down too, doesn't it?  Now we are doing a fork per
> branch during completion.  Yikes.  Didn't you just post a series
> about making completion faster?
No, correctness was and is my concern, so this patch fits well into this.
Bert
Previous: Bert WesargNext: Junio C Hamano
Message 7 of 16 in “for-each-ref: utilize core.warnambiguousrefs for strict refname:short format”
  1. 1/3 for-each-ref: utilize core.warnambiguousrefs for strict refname:short formatBert Wesarg, Sep 22, 2008
  2. 2/3 for-each-ref: factor out get_short_ref() into refs.c:abbreviate_refname()Bert Wesarg, Sep 22, 2008
  3. 3/3 git abbref-ref: new porcelain for abbreviate_ref()Bert Wesarg, Sep 22, 2008
  4. Shawn O. PearceSep 22, 2008
  5. Junio C HamanoSep 22, 2008
  6. Bert WesargSep 22, 2008
  7. Bert WesargSep 22, 2008
  8. Junio C HamanoSep 22, 2008
  9. Bert WesargSep 22, 2008
  10. Junio C HamanoOct 17, 2008
  11. Shawn O. PearceOct 18, 2008
  12. Bert WesargOct 18, 2008
  13. get_short_ref(): add strict modeBert Wesarg, Apr 11, 2009
  14. Junio C HamanoApr 11, 2009
  15. Bert WesargApr 11, 2009
  16. for-each-ref: refname:short utilize core.warnAmbiguousRefsBert Wesarg, Apr 11, 2009

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.