Re: [PATCH v2 5/7] wt-status: consistently quote paths in "status --short" output
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 10, 2020, 18:38 UTC
- Message-ID
- <xmqqft7ppjdk.fsf@gitster.c.googlers.com>
- In-Reply-To
- <20200910181300.GB1917207@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 10 quoted lines
> On Thu, Sep 10, 2020 at 10:01:57AM -0700, Junio C Hamano wrote: > >> Tracked paths with SP in them were cquoted in "git status --short" >> output, but untracked, ignored, and unmerged paths weren't. > > By the way, the long status output will quote paths as appropriate, but > _not_ apply this "we should quote spaces" rule. I'm not sure if that > came up in earlier discussion or not. Certainly we're free to do > whatever looks nicest to humans there, so maybe we prefer to avoid > quoting as much as possible.
Yup, the long output format is strictly for human consumption and one fewer case to enclose the path in a dq-pair is good ;-).