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

Re: [PATCH v2] tag, branch, for-each-ref: add --ignore-case for sorting and filtering

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 6, 2016, 21:11 UTC
Message-ID
<xmqqpol4zrt3.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20161204025225.11158-1-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy  <pclouds@gmail.com> writes:
Show 18 quoted lines
> This options makes sorting ignore case, which is great when you have
> branches named bug-12-do-something, Bug-12-do-some-more and
> BUG-12-do-what and want to group them together. Sorting externally may
> not be an option because we lose coloring and column layout from
> git-branch and git-tag.
>
> The same could be said for filtering, but it's probably less important
> because you can always go with the ugly pattern [bB][uU][gG]-* if you're
> desperate.
>
> You can't have case-sensitive filtering and case-insensitive sorting (or
> the other way around) with this though. For branch and tag, that should
> be no problem. for-each-ref, as a plumbing, might want finer control.
> But we can always add --{filter,sort}-ignore-case when there is a need
> for it.
>
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
> ---

It took me a while to figure out the interactions with topics in flight, but I think I resolved it correctly now. There was a topic that added "--format" to branch and tag.

Will be pushed out as part of today's integration cycle.
Thanks.
Previous: Nguyễn Thái Ngọc Duy
Message 5 of 5 in “ref-filter: support sorting case-insensitively”
  1. ref-filter: support sorting case-insensitivelyNguyễn Thái Ngọc Duy, Nov 17, 2016
  2. tag, branch, for-each-ref: add --ignore-case for sorting and filteringNguyễn Thái Ngọc Duy, Nov 30, 2016
  3. Junio C HamanoNov 30, 2016
  4. tag, branch, for-each-ref: add --ignore-case for sorting and filteringNguyễn Thái Ngọc Duy, Dec 4, 2016
  5. Junio C HamanoDec 6, 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.