All of lore.kernel.org
 help / color / mirror / Atom feed
* refining .gitignores
@ 2007-11-14 22:36 Bruce Stephens
  2007-11-14 23:02 ` Alex Riesen
  0 siblings, 1 reply; 9+ messages in thread
From: Bruce Stephens @ 2007-11-14 22:36 UTC (permalink / raw)
  To: git

How do I get a list of files (in HEAD, say) that would be ignored by
the .gitignore files (and the other usual settings)?

It feels like something like this ought to work:

     git ls-files -z | xargs -0 git ls-files --ignored

But listing its arguments that are ignored by .gitignore (etc.)
doesn't seem to be what "git ls-files --ignored" does.  Or at least,
not quite as straightforwardly as that.

The motivation is (obviously) that I fear some of the .gitignore
patterns are too broad, and a reasonable check is that none of the
files that are already committed would be caught by the patterns.

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

end of thread, other threads:[~2007-11-15 21:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-14 22:36 refining .gitignores Bruce Stephens
2007-11-14 23:02 ` Alex Riesen
2007-11-15 11:39   ` Bruce Stephens
2007-11-15 19:26     ` Alex Riesen
2007-11-15 20:28       ` Bruce Stephens
2007-11-15 20:40         ` Linus Torvalds
2007-11-15 21:13           ` Bruce Stephens
2007-11-15 21:17         ` Alex Riesen
2007-11-15 21:56           ` Linus Torvalds

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.