Re: [PATCH 1/2] t7508: demonstrate status's failure to use --porcelain format with -z
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 26, 2011, 23:31 UTC
- Message-ID
- <7vzkm9t4x3.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <oxsohkXWsdC5MeWOTaXZMEPAVeHglxeXSUXEWJ6xA_rmLcm2iqjtpg@cipher.nrlssc.navy.mil>
Brandon Casey <casey@nrlssc.navy.mil> writes:
>> By the way, don't we however also want to make sure -z does not kick in >> automatically when other options like "short" or "normal" is given?
Heh, the above obviously does not make sense. What I meant was "if you have -z but also --short or something other than --porcelain, -z should not cause the command to fall back to --porcelain".
> It seems it was intended to be able to do > > git status -z --short
Yes, you are of course right; in this case we shouldn't do either normal nor porcelain; we should do NUL-terminated short output.