From: Jeff King <peff@peff.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org, Zak Johnson <zakj@nox.cx>
Subject: Re: [PATCH] correct git-status Porcelain Format documentation
Date: Mon, 7 May 2012 14:13:48 -0400 [thread overview]
Message-ID: <20120507181348.GA26977@sigill.intra.peff.net> (raw)
In-Reply-To: <7vobpz6ewg.fsf@alter.siamese.dyndns.org>
On Mon, May 07, 2012 at 11:10:23AM -0700, Junio C Hamano wrote:
> Jeff King <peff@peff.net> writes:
>
> > What should "git status --porcelain -z -b" look like? With my patch, it
> > prints the branch-line with only a newline, not respecting the NUL
> > termination. Which sounds like a bug, except that's what happens _now_
> > with "git status --short -z -b". Which seems like a bug to me, but
> > maybe somebody is relying on that. It seems kind of broken to me.
>
> It is broken; and it is not a problem if somebody relied on a broken
> output without giving --porcelain in a script and such a script needs to
> be updated. If we are updating the code to give "## <branch>" in the
> output under the "--porcelain", let's do that right from the beginning.
OK, that matches my feelings.
> > Should this be simplified to just "this implies porcelain"?
> >
> > That would technically break somebody who wanted their
> > status.relativePaths config option respected. But it kind of seems crazy
> > to me.
>
> I do not think it is worth changing it. It is not too much touble to
> spell "status --porcelain -z <whatever else>" in a Porcelain script only
> once and forget about it.
OK. I think it makes it conceptually simpler, but of the problems I
listed, that is the least bug-like.
I'll prepare a series to fix "-b -z" and "-b --porcelain".
-Peff
next prev parent reply other threads:[~2012-05-07 18:13 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-06 13:29 [PATCH] correct git-status Porcelain Format documentation Jeff King
2012-05-06 13:51 ` Jeff King
2012-05-07 18:10 ` Junio C Hamano
2012-05-07 18:13 ` Jeff King [this message]
2012-05-07 21:21 ` Jeff King
2012-05-07 21:22 ` [PATCH 1/5] commit: refactor option parsing Jeff King
2012-05-07 21:23 ` [PATCH 2/5] status: refactor colopts handling Jeff King
2012-05-08 13:27 ` Nguyen Thai Ngoc Duy
2012-05-07 21:24 ` [PATCH 3/5] status: refactor null_termination option Jeff King
2012-05-07 21:24 ` [PATCH 4/5] status: fix null termination with "-b" Jeff King
2012-05-07 21:25 ` [PATCH 5/5] status: respect "-b" for porcelain format Jeff King
2012-05-07 21:28 ` Jeff King
2012-05-08 4:55 ` Junio C Hamano
2012-05-08 9:04 ` Jeff King
2012-05-08 17:52 ` Junio C Hamano
2012-05-07 18:03 ` [PATCH] correct git-status Porcelain Format documentation Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120507181348.GA26977@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=zakj@nox.cx \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).