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

Re: git-checkout doesn't seem to respect config from include.path

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Feb 2, 2022, 22:57 UTC
Message-ID
<YfsMYTo1tND5JKNx@camp.crustytoothpaste.net>
In-Reply-To
<ee1dd453-e698-440a-911b-d14389e33715@beta.fastmail.com>
On 2022-02-02 at 16:04:26, Greg Hurrell wrote:
Show 14 quoted lines
> However, when I try to run a command like `git checkout -b something`,
> Git dies with:
> 
>     fatal: unknown style 'zdiff3' given for 'merge.conflictstyle'
> 
> So, it looks like something in `git-checkout`'s option processing is
> causing it to disregard the override set via "include.path". In fact, it
> even disregards a value passed in with `-c` like this:
> 
>     git -c merge.conflictStyle=diff3 checkout -b something
> 
> Does this sound like a bug, or are my expectations off? I'd be happy to
> look into fixing this, but first would like to know whether it is
> expected behavior.

This definitely doesn't sound like the expected behavior here. It's not clear to me why this is happening, but it probably shouldn't be. It doesn't appear that we fail to call the config callback, since we've been doing that since 2010.

What version of Git are you using that's not working?
-- 
brian m. carlson (he/him or they/them)
Toronto, Ontario, CA
Previous: Greg HurrellNext: Greg Hurrell
Message 2 of 10 in “git-checkout doesn't seem to respect config from include.path”
  1. Greg HurrellFeb 2, 2022
  2. brian m. carlsonFeb 2, 2022
  3. Greg HurrellFeb 3, 2022
  4. Phillip WoodFeb 3, 2022
  5. Greg HurrellFeb 3, 2022
  6. Greg HurrellFeb 3, 2022
  7. Phillip WoodFeb 7, 2022
  8. Junio C HamanoFeb 3, 2022
  9. Phillip WoodFeb 7, 2022
  10. Junio C HamanoFeb 7, 2022

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.