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

Re: .git ignored regardless of --git-dir value

From
SFShawn Ferris <shawn.ferris@gmail.com>
Date
Nov 18, 2011, 23:44 UTC
Message-ID
<CAC2kKA-E4KstQCGV=gMJHFdUdzM0boc7SmZNzvSh9_OQWvHcdQ@mail.gmail.com>
In-Reply-To
<7v7h2xjbf4.fsf@alter.siamese.dyndns.org>
On Fri, Nov 18, 2011 at 3:47 PM, Junio C Hamano <gitster@pobox.com> wrote:
> Junio C Hamano <gitster@pobox.com> writes:
>>
>> GIT_DIR and --git-dir are meant to refer to a different .git dir (or a
>> bare-looking repository) located elsewhere, and not for a random pathname
>> like ".foo". No matter what, ".git/" anywhere is ignored from very early

I'm extremely green to git, so please forgive if this is obvious, but, could I indulge and ask what a sample use case of that would be? (since it's not intended for what I assumed it was) And, if the behavior I expected was possible, simply, with perhaps a separate option, what is the likelihood a patch would be accepted? (Or am I just talking nonsense and should just go away) ;D

Thanks Again!
Shawn
Previous: Junio C Hamano
Message 4 of 4 in “.git ignored regardless of --git-dir value”
  1. Shawn FerrisNov 18, 2011
  2. Junio C HamanoNov 18, 2011
  3. Junio C HamanoNov 18, 2011
  4. Shawn FerrisNov 18, 2011

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.