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

Re: [Bug] Custom git-dir directory shouldn't be listed as “untracked”

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 19, 2016, 17:45 UTC
Message-ID
<xmqqeg4fg4w6.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CACmQg1hE=ytaatDfUJLkhL0p5c43wZZvgt+8pc5zoo0YFdQw6A@mail.gmail.com>
Nicolas Cuillery <nicolas.cuillery@gmail.com> writes:
> When using the default directory ".git", it logically doesn't appear
> in the "git status" command's output. Don't you think it should be the
> same when using a custom dir name ?
Not really.

GIT_DIR=<there> mechanism was never meant to be used to name a directory that sitsinside your working tree (an exception is if it is actually ".git" at the top).

Previous: Nicolas Cuillery
Message 2 of 2 in “[Bug] Custom git-dir directory shouldn't be listed as “untracked””
  1. Nicolas CuillerySep 19, 2016
  2. Junio C HamanoSep 19, 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.