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

Re: git tag -h fatal error with global tag.sort config

From
Bagas Sanjaya <bagasdotme@gmail.com>
Date
Sep 13, 2021, 04:37 UTC
Message-ID
<f6673745-a6da-60b5-0782-349b6b76608b@gmail.com>
In-Reply-To
<20210912132757.GC76263@szeder.dev>
On 12/09/21 20.27, SZEDER Gábor wrote:
Show 7 quoted lines
> Now, 'git branch' uses the same ref-filter sorting, but the equivalent
> 'git -c branch.sort=creatordate branch -h' command does show the usage
> as expected.  The relevant difference between cmd_branch() and
> cmd_tag() is that the former special-cases the '-h' option as well
> just before it would call git_config().  Doing the same in cmd_tag()
> like in the patch below seems to fix this issue, but I'm not sure that
> this is the right fix.

Also note: specifying the config above as local config (in .git/config) doesn't trigger the error.

-- 
An old man doll... just what I always wanted! - Clara
Previous: Jeff KingNext: Bagas Sanjaya
Message 4 of 5 in “git tag -h fatal error with global tag.sort config”
  1. Bagas SanjayaSep 12, 2021
  2. SZEDER GáborSep 12, 2021
  3. Jeff KingSep 12, 2021
  4. Bagas SanjayaSep 13, 2021
  5. Bagas SanjayaOct 18, 2021

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.