From: Junio C Hamano <junkio@cox.net>
To: Petr Baudis <pasky@suse.cz>
Cc: junkio@cox.net, "Ilpo Järvinen" <ilpo.jarvinen@helsinki.fi>,
git@vger.kernel.org
Subject: Re: [PATCH] Fixes git-cherry algorithmic flaws
Date: Sat, 23 Sep 2006 18:49:22 -0700 [thread overview]
Message-ID: <7virjem3tp.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <20060924000051.GI20017@pasky.or.cz> (Petr Baudis's message of "Sun, 24 Sep 2006 02:00:51 +0200")
Petr Baudis <pasky@suse.cz> writes:
> Dear diary, on Mon, Aug 07, 2006 at 12:30:13PM CEST, I got a letter
> where Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> said that...
>> Old algorithm:
>> - printed IDs of identical patches with minus (-) sign; they
>> should not be printed at all
>> - did not print anything from the changes in the upstream
>>
>> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
>
> Ping? Is this patch bogus or was it just forgotten?
These are not fixes to "algorithmic flaws". It's more like that
Ilpo is writing a different program to fill different needs, and
I did not see what workflow wanted to have the list of changes
that were in the upstream and our changes. Maybe what Ilpo
wanted to see was something like "git log upstream...mine"
(three-dots not two to mean symmetric difference). I dunno.
That operation certainly did not exist when we did git-cherry
originally.
The original purpose of git-cherry (which probably is different
from what Ilpo wanted to have, and that is why Ilpo modified it
into a different program) is for a developer in the contributor
role to see which ones of local patches have been accepted
upstream and which ones still remain unapplied -- the intent is
to help rebase only the latter and keep trying to convince
upstream that these remaining ones are also worth applying.
So minus (-) lines are very much needed to if you want to see
which ones have been accepted. Plus lines are used to pick
which ones to rebase by older version of git-rebase, but I do
not think we do that anymore. And in any case we are _not_
interested in whatever happened in the upstream that did not
come from the branch we are looking at.
I suspect we do not use it anywhere anymore. Maybe we can
remove it?
... goes and looks ...
git grep -e git.cherry --and --not -e git.cherry-pick
Nah, no such luck. One of the documentation suggests that you
drive cvsexportcommit using its output, like this:
git cherry cvs mine | sed -n -e 's/^\+ //p' |
xargs -L 1 git-cvsexportcommit -c -p -v
and I can see why cherry is (perhaps slightly) more desirable
than "git rev-list cvs..mine"
So unless we come up with an alternative way to do this, we
cannot change it or drop it. Not yet.
next prev parent reply other threads:[~2006-09-24 1:49 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 [this message]
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
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=7virjem3tp.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=ilpo.jarvinen@helsinki.fi \
--cc=pasky@suse.cz \
/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).