git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* why does "man git-clean" not mention files ignored by core.excludesFile?
@ 2018-05-21 16:24 Robert P. J. Day
  2018-05-22  2:50 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Robert P. J. Day @ 2018-05-21 16:24 UTC (permalink / raw)
  To: Git Mailing list

[-- Attachment #1: Type: text/plain, Size: 924 bytes --]


  sort of related to my previous post, but in "man git-clean", one
reads:

  -e <pattern>, --exclude=<pattern>
     In addition to those found in .gitignore (per directory)
     and $GIT_DIR/info/exclude, also consider these patterns to
     be in the set of the ignore rules in effect.

  -x
     Don’t use the standard ignore rules read from .gitignore
     (per directory) and $GIT_DIR/info/exclude, but do still use
     the ignore rules given with -e options. This allows
     removing all untracked files, including build products.
     This can be used (possibly in conjunction with git reset)
     to create a pristine working directory to test a clean
     build.

  why is there no mention of files ignored via a user's
core.excludesFile configuration? those sections seem sufficiently
comprehensive to list all of the other ways to ignore files, is there
a reason that that config setting is not mentioned?

rday

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: why does "man git-clean" not mention files ignored by core.excludesFile?
  2018-05-21 16:24 why does "man git-clean" not mention files ignored by core.excludesFile? Robert P. J. Day
@ 2018-05-22  2:50 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2018-05-22  2:50 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: Git Mailing list

"Robert P. J. Day" <rpjday@crashcourse.ca> writes:

>   why is there no mention of files ignored via a user's
> core.excludesFile configuration?

IIUC, core.excludesFile is a much much later invention made long
after everybody lost interest in updating "git clean", let alone its
documentation.  The support for the configuration variable was added
to the internal API used to access exclude mechanism, so "clean",
together with other users of the same API, got it for free when it
was added, and nobody bothered to update the documentation of
"clean".

In other words, a short answer is because you haven't made it to
mention it ;-).


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-22  2:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-21 16:24 why does "man git-clean" not mention files ignored by core.excludesFile? Robert P. J. Day
2018-05-22  2:50 ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).