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

Re: includeIf appears to not be working

From
Jeff King <peff@peff.net>
Date
Dec 12, 2022, 20:57 UTC
Message-ID
<Y5eVsb8rIH9TFgIj@coredump.intra.peff.net>
In-Reply-To
<Y5eVTrK2CO0h5BPl@coredump.intra.peff.net>
On Mon, Dec 12, 2022 at 03:55:42PM -0500, Jeff King wrote:
Show 6 quoted lines
> > Is there a debug command which can show if the gitdir is/isn't
> > matching like I thought it should?  What other command output could
> > help debug this?
> 
> No, there's no debug/tracing code for this feature. You'd have to run it
> under gdb (break on the include_by_gitdir function).
Oh, one other command you could try:
  git rev-parse --absolute-git-dir

while in the repository in question. I think that would do the same normalization of the path (including resolving symlinks). So that would tell you what Git should be matching against.

-Peff
Previous: Jeff King
Message 5 of 5 in “includeIf appears to not be working”
  1. Joshua J. KuglerDec 12, 2022
  2. Eric SunshineDec 12, 2022
  3. Joshua J. KuglerDec 12, 2022
  4. Jeff KingDec 12, 2022
  5. Jeff KingDec 12, 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.