git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: "Matt Seitz (matseitz)" <matseitz@cisco.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>,
	"git-users(mailer list)" <git-users@cisco.com>
Subject: Re: Does "git config --local core.excludefiles" exclude files in a single repository?
Date: Tue, 3 Jul 2012 03:30:16 -0400	[thread overview]
Message-ID: <20120703073016.GC16679@sigill.intra.peff.net> (raw)
In-Reply-To: <A0DB01D693D8EF439496BC8B037A0AEF02C738@xmb-rcd-x15.cisco.com>

On Fri, Jun 29, 2012 at 06:11:06PM +0000, Matt Seitz (matseitz) wrote:

> Will git ignore files in an exclusion file that is specified in a
> local ($GIT_DIR/config) "core.excludefiles" configuration option?

Yes, git should treat it the same as if it were mentioned in
$HOME/.gitconfig (modulo the correct spelling of "core.excludesfile").
It will override any core.excludesfile found in a system-level or
user-level git config file.

> I know that "$GIT_DIR/info/exclude" is normally used for listing files
> that a single user wants exclude from a single repository.  And I know
> that "git config --global core.excludefiles=<file>" is normally used
> for listing files that a single user wants to exclude from all
> repositories.  But I didn't see any explicit documentation for whether
> "git config core.excludefiles=<file>" would exclude files for a single
> user in a single repository.

In general, git does not care about the exact source of config
variables. Options in more specific files override less-specific ones,
but there is no per-variable code that cares specifically about the
location of core.excludesfile or any other option.

-Peff

      reply	other threads:[~2012-07-03  7:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-29 18:11 Does "git config --local core.excludefiles" exclude files in a single repository? Matt Seitz (matseitz)
2012-07-03  7:30 ` Jeff King [this message]

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=20120703073016.GC16679@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=git-users@cisco.com \
    --cc=git@vger.kernel.org \
    --cc=matseitz@cisco.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).