From: Junio C Hamano <gitster@pobox.com>
To: Shawn Ferris <shawn.ferris@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: .git ignored regardless of --git-dir value
Date: Fri, 18 Nov 2011 13:26:44 -0800 [thread overview]
Message-ID: <7vsjlljf57.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <CAC2kKA_PZNDg_dPjWXKeFU4ZVpMas3PubZfSgTnfCfVPuNPdsA@mail.gmail.com> (Shawn Ferris's message of "Fri, 18 Nov 2011 13:56:56 -0700")
Shawn Ferris <shawn.ferris@gmail.com> writes:
> Is it expected behavior to have the .git directory ignored, even after
> specifying an alternate location with --git-dir? For example:
>
> $ git --git-dir=.foo init
> Initialized empty Git repository in /home/sferris/work/t/.foo/
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
days of Git, as Linus himself writes in the source, e.g. 8695c8b (Add
"show-files" command to show the list of managed (or non-managed) files.,
2005-04-11):
...
* Also, we currently ignore all names starting with a dot.
* That likely will not change.
...
next prev parent reply other threads:[~2011-11-18 21:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-18 20:56 .git ignored regardless of --git-dir value Shawn Ferris
2011-11-18 21:26 ` Junio C Hamano [this message]
2011-11-18 22:47 ` Junio C Hamano
2011-11-18 23:44 ` Shawn Ferris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vsjlljf57.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=shawn.ferris@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).