From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: Michal Privoznik <mprivozn@redhat.com>, git@vger.kernel.org
Subject: Re: [PATCH] config: Introduce --patience config variable
Date: Wed, 07 Mar 2012 09:24:18 -0800 [thread overview]
Message-ID: <7vobs8nx31.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <20120307114714.GA14990@sigill.intra.peff.net> (Jeff King's message of "Wed, 7 Mar 2012 06:47:15 -0500")
Jeff King <peff@peff.net> writes:
> On Tue, Mar 06, 2012 at 06:57:42PM -0800, Junio C Hamano wrote:
>
>> > The idea of turning on patience diff via config makes sense to me, and
>> > it is not a problem for plumbing tools to have patience diff on, since
>> > patience diffs are syntactically identical to non-patience diffs.
>>
>> Even though I do not strongly object to the general conclusion, I
>> have to point out that the last line above is a dangerous thought.
>>
>> If you change the default diff algorithm, you will invalidate long
>> term caches that computed their keys based on the shape of patches
>> produced in the past.
>
> I see your point, though I don't think I'd use the word "dangerous" to
> describe the invalidation of a cache.
I probably was not writing clearly enough to avoid getting misread.
The "dangerous" does not refer to "invalidation of a cache". What I
meant was that "The output is syntactically identical, so it is OK"
is a dangerous way to think when assessing the risk of regression,
because applying to a given preimage and producing the same
postimage is not the *only* way the output is used.
I think the executive summary is that we are in agreement; your
analysis of potential regression coming from differences of the
shape of the patch output (not applicability to a given preimage to
produce the same postimage) seems to match what I said in the
previous message.
Especially in the kup case, it is a minority tool used by people who
knows or can be easily taught in a tightly controlled environment,
and it is fine as long as the users have a way to make sure two
diffs run on both ends of the communication produce the same result
(in an earlier discussion on k.org users list where kup was first
discussed, the limitation of users having to use the same version as
k.org has was noted and the users are already aware of it).
prev parent reply other threads:[~2012-03-07 17:24 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-06 10:59 [PATCH] config: Introduce --patience config variable Michal Privoznik
2012-03-06 11:49 ` Jeff King
2012-03-06 13:01 ` Thomas Rast
2012-03-06 13:15 ` [PATCH 1/2] perf: compare diff algorithms Thomas Rast
2012-03-06 13:15 ` [PATCH 2/2] Document the --histogram diff option Thomas Rast
2012-03-06 19:57 ` Junio C Hamano
2012-03-06 20:42 ` Thomas Rast
2012-03-06 19:52 ` [PATCH 1/2] perf: compare diff algorithms Junio C Hamano
2012-03-06 21:00 ` Thomas Rast
2012-03-06 21:18 ` Junio C Hamano
2012-03-06 21:41 ` Jakub Narebski
2012-03-07 12:44 ` Thomas Rast
2012-03-07 17:45 ` Junio C Hamano
2012-03-07 18:03 ` Jakub Narebski
2012-03-07 18:19 ` Junio C Hamano
2012-03-10 7:13 ` René Scharfe
2012-03-06 13:30 ` [PATCH] config: Introduce --patience config variable Jeff King
2012-03-06 13:32 ` Michal Privoznik
2012-03-06 13:38 ` Matthieu Moy
2012-03-06 14:09 ` Jeff King
2012-03-07 2:57 ` Junio C Hamano
2012-03-07 11:47 ` Jeff King
2012-03-07 17:24 ` Junio C Hamano [this message]
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=7vobs8nx31.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=mprivozn@redhat.com \
--cc=peff@peff.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).