From: Junio C Hamano <gitster@pobox.com>
To: "George Spelvin" <linux@horizon.com>
Cc: gitster@pobox.com, git@vger.kernel.org
Subject: Re: [WARNING] Proposed future changes that are backward incompatible
Date: Fri, 27 Feb 2009 13:02:27 -0800 [thread overview]
Message-ID: <7vr61jiof0.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <20090227203108.10186.qmail@science.horizon.com> (George Spelvin's message of "Fri, 27 Feb 2009 15:31:08 -0500")
"George Spelvin" <linux@horizon.com> writes:
> The suggestion was in <83vdsefz9j.fsf@kalahari.s2.org>, available as
> http://marc.info/?l=git&m=123216049508531
> but I agree that there was no consensus. I just thought this thread was
> a good place to elicit discussion, since it would be an incompatible change.
>
>> The only way you could justify such a default change is to say:
>>
>> Almost all the time, everybody wants to use this new behaviour; the
>> old behaviour is almost never useful in any situation other than a
>> narrow corner case; and if somebody wants to do such a useless thing
>> in a corner case, he can always add " ." at the end, so nothing is
>> lost.
>>
>> I do not think that is true for the change you are proposing here. 'He
>> can always add " ." at the end' alone is not a good enough justification.
>
> Please forgive me, ...
There is nothing that needs forgiveness. Discussion is a good thing, as
long as it is not about useless bikeshedding (and I should just learn to
ignore discussions that are useless, instead of getting upset. Lucikly we
haven't had many).
> ... I thought the above *might* be true, and wanted to provoke
> discussion to see how people felt.
If you suspected that the above may be true, that the new behaviour should
be the default, and that many people may support that view, and wanted to
confirm it, then your justification should have really spelled it out.
> The "consistent with
> git-log and all that stuff" argument is quite persuasive to me, but it's
> a convenience feature, so it depends on how people feel.
Consistency among tools with a similar objective is a good thing to aim
for.
"log" especially "log -p" is about inspecting _changes_ and to understand
the change you would more often than not want to view the change in the
entire context (that is the point of having an atomic while-tree commit).
On the other hand, "grep" is about narrowing down the _state_ you would
want to inspect, and unlike the case when you _inspect changes_ where you
would more often want to have the entire context, you would more often
want to omit unrelated parts of the tree while you are _narrowing down
state_ to inspect. This is especially true when you run it from a
subdirectory, and by definition when you are already in a subdirectory,
your attention is already narrowed down to the part of the whole tree you
are currently in.
So in that sense, I do not see a "similar objective" between what log and
grep are used for. They may superficially look similar, but the useful
mode of operation between them can be different because they are used for
different purposes.
next prev parent reply other threads:[~2009-02-27 21:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-27 19:27 [WARNING] Proposed future changes that are backward incompatible George Spelvin
2009-02-27 19:42 ` Nicolas Pitre
2009-02-27 19:51 ` Sverre Rabbelier
2009-02-27 19:48 ` Johannes Schindelin
2009-02-27 20:54 ` Pascal Obry
2009-02-27 19:59 ` Junio C Hamano
2009-02-27 20:31 ` George Spelvin
2009-02-27 21:02 ` Junio C Hamano [this message]
2009-02-28 2:36 ` Markus Heidelberg
-- strict thread matches above, loose matches on Subject: below --
2009-02-26 1:28 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=7vr61jiof0.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=linux@horizon.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.