Re: git status --porcelain is a mess that needs fixing
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Apr 10, 2010, 06:12 UTC
- Message-ID
- <20100410061224.GA18715@progeny.tock>
- In-Reply-To
- <20100410060353.GA4585@coredump.intra.peff.net>
Jeff King wrote:
> You do "git clean -ndX" to see > _everything_ that is untracked, and "git clean -nd" to see things that > are untracked but not ignored.
No, the capital X tells clean to only list excluded files. The standard use is as a poor man’s “make maintainer-clean”, leaving unrelated files alone.
I only learned about it just now. I’m glad I did (I often use the lowercase version for this because I just didn’t know about -X), but as you mentioned, it is not so applicable here because not plumbing.
Jonathan