From: Junio C Hamano <gitster@pobox.com>
To: Stephan Beyer <s-beyer@gmx.net>
Cc: Carlos Rica <jasampler@gmail.com>,
Johannes Schindelin <Johannes.Schindelin@gmx.de>,
git@vger.kernel.org
Subject: Re: [PATCH] git-reset: Let -q hush "locally modified" messages
Date: Fri, 25 Jul 2008 15:07:34 -0700 [thread overview]
Message-ID: <7vej5hr521.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <20080725213853.GD13539@leksak.fem-net> (Stephan Beyer's message of "Fri, 25 Jul 2008 23:38:53 +0200")
Stephan Beyer <s-beyer@gmx.net> writes:
> Junio C Hamano wrote:
> ...
>> Files being "locally modified" is not and error, so I think it is in line
>> with the spirit of what -q is meant to do.
>>
>> It is an interface change, though.
>
> Yes, as "needs update" -> "locally modified" was.
>
> However, scripts, that rely on filenames when doing -q (whyever),
> will break.
I was not worried about scripts. "reset" is a Porcelain, and it is Ok for
the scripts to use it and rely on what it does (e.g. "git reset HEAD^"
will move the HEAD one commit back and match your index to it), but they
should not be depending on its output to be parsable. Perhaps it is Ok
for them to detect if there is any change by observing if it spits out
anything, but that is about it. So the earlier change to use "locall
modified" does not really matter in that sense, but squelching the output
altogether is a change with bigger impact. With your patch, we declare
that the scripts should not assume anything about its output.
I was more worried about expectation from human users. We used to get a
reminder of the paths that are different from the HEAD/index, even with
the "-q" option, in the form of human-readable list of paths. Your patch
changes that.
Having said all that (the only reason I said the above is not because I
think this particular interface change is a big deal, but because I wanted
to explain what kind of interface change I do and do _not_ care about when
we talk about Porcelain), when the user explicitly gives "-q" to the
command, I think it is Ok to assume that the user does not want to hear
anything back. I do not see any fundamental problem with your patch in
that sense.
It still is an interface change, though ;-)
next prev parent reply other threads:[~2008-07-25 22:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-25 20:49 [PATCH] git-reset: Let -q hush "locally modified" messages Stephan Beyer
2008-07-25 21:24 ` Junio C Hamano
2008-07-25 21:38 ` Stephan Beyer
2008-07-25 22:07 ` Junio C Hamano [this message]
2008-07-26 2:34 ` Johannes Schindelin
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=7vej5hr521.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=jasampler@gmail.com \
--cc=s-beyer@gmx.net \
/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).