{"thread":{"id":"30930","subject":"Does \"git config --local core.excludefiles\" exclude files in a single repository?","startedAt":"2012-06-29T18:11:06Z","lastAt":"2012-07-03T07:30:16Z","messageCount":2,"participants":["Matt Seitz (matseitz)","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"194441","messageId":"A0DB01D693D8EF439496BC8B037A0AEF02C738@xmb-rcd-x15.cisco.com","threadId":"30930","inReplyTo":null,"subject":"Does \"git config --local core.excludefiles\" exclude files in a single repository?","fromName":"Matt Seitz (matseitz)","fromEmail":"matseitz@cisco.com","sentAt":"2012-06-29T18:11:06Z","receivedAt":"2012-06-29T18:11:06Z","isPatch":false,"sender":{"key":"matseitz@cisco.com","avatar":null},"body":"Will git ignore files in an exclusion file that is specified in a local ($GIT_DIR/config) \"core.excludefiles\" configuration option?\n\nI mistakenly ran \"git config core.excludefiles=<file>\", and I was curious whether this command actually has any effect.\n\nI 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.\n"},{"id":"194517","messageId":"20120703073016.GC16679@sigill.intra.peff.net","threadId":"30930","inReplyTo":"A0DB01D693D8EF439496BC8B037A0AEF02C738@xmb-rcd-x15.cisco.com","subject":"Re: Does \"git config --local core.excludefiles\" exclude files in a single repository?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2012-07-03T07:30:16Z","receivedAt":"2012-07-03T07:30:16Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Fri, Jun 29, 2012 at 06:11:06PM +0000, Matt Seitz (matseitz) wrote:\n\n> Will git ignore files in an exclusion file that is specified in a\n> local ($GIT_DIR/config) \"core.excludefiles\" configuration option?\n\nYes, git should treat it the same as if it were mentioned in\n$HOME/.gitconfig (modulo the correct spelling of \"core.excludesfile\").\nIt will override any core.excludesfile found in a system-level or\nuser-level git config file.\n\n> I know that \"$GIT_DIR/info/exclude\" is normally used for listing files\n> that a single user wants exclude from a single repository.  And I know\n> that \"git config --global core.excludefiles=<file>\" is normally used\n> for listing files that a single user wants to exclude from all\n> repositories.  But I didn't see any explicit documentation for whether\n> \"git config core.excludefiles=<file>\" would exclude files for a single\n> user in a single repository.\n\nIn general, git does not care about the exact source of config\nvariables. Options in more specific files override less-specific ones,\nbut there is no per-variable code that cares specifically about the\nlocation of core.excludesfile or any other option.\n\n-Peff\n"}]}