From: Jakub Narebski <jnareb@gmail.com>
To: git@vger.kernel.org
Subject: Re: [PATCH] Fixes git-cherry algorithmic flaws
Date: Sun, 24 Sep 2006 21:25:17 +0200 [thread overview]
Message-ID: <ef6m2g$cnk$1@sea.gmane.org> (raw)
In-Reply-To: Pine.LNX.4.58.0609242104080.32175@kivilampi-30.cs.helsinki.fi
Ilpo Järvinen wrote:
> On Sun, 24 Sep 2006, Junio C Hamano wrote:
>> I wonder if we can kill it by introducing a new rev notation and
>> using regular rev-list family of commands instead.
>>
>> What we want here is a way to say "give me commits that are in B
>> but not in A, but before returning a commit see if there is an
>> equivalent change in the set of commits that are in A but not in
>> B, and filter it out".
>
> I think that your formalization is very close to what I was expecting to
> get (sort of one-way definition)... However, my git-cherry way produces
> "difference" but on a higher level (than git-diff) since it includes both
> + and - "changes". Of course, when I have then modified one of the
> changesets slightly, I have different patch id, and thus + and - with same
> log message (with verbose), which IMHO is a good thing to notice,
> especially if I return to the work after 2 weeks or so :-).
>
> A real life example: In a branch, I have changed tcp_packets_in_flight
> (~10 callers) to input sk instead of tp in a single changeset and >10
> minor changesets. I would love to see tcp_packets_in_fligth change
> information just once when doing diffing topic-old topic-new during cherry
> picking, instead of a lengthy diff full of search-and-replace "noise",
> which increases possiblity of an human error...
>
> But anyway, I'm not claiming that your approach is less useful...
+1 on an idea that git-cherry is "diff of logs". Perhaps to add some header.
Of course use patch_ids _and_ the commit message to compare (we can have
both match, patch id match only, commit message match only, and commit
title (first line) match only), but that can be selected using options.
--
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
prev parent reply other threads:[~2006-09-24 19:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-07 10:30 [PATCH] Fixes git-cherry algorithmic flaws Ilpo Järvinen
2006-09-24 0:00 ` Petr Baudis
2006-09-24 1:49 ` Junio C Hamano
2006-09-24 11:17 ` Petr Baudis
2006-09-24 17:47 ` Junio C Hamano
2006-09-24 18:43 ` Ilpo Järvinen
2006-09-24 19:25 ` Jakub Narebski [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='ef6m2g$cnk$1@sea.gmane.org' \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
/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.