Re: More git status --porcelain lossage
- From
Jeff King <peff@peff.net>
- Date
- Apr 10, 2010, 04:14 UTC
- Message-ID
- <20100410041442.GC11977@coredump.intra.peff.net>
- In-Reply-To
- <20100410041247.GB11977@coredump.intra.peff.net>
On Sat, Apr 10, 2010 at 12:12:48AM -0400, Jeff King wrote:
Show 8 quoted lines
> > Conclusion: As it is presently, git status --porcelain format is > > irretrievably botched. You need a field separator that's musch less > > likely to land in a filename, like '|' - and to warn in the documentation > > that careful front ends must check for and ignore '\|'. > > We already quote correctly, so it is only sloppy parsers that will be in > trouble. Yes, space is more common than "|", but sloppy is sloppy. Parse > it right, or use "-z".
BTW, this should go on your "git status --porcelain documentation failures" list. We really need to note that the output paths may be quoted.
-Peff