* git log and cherry-picks
@ 2010-06-28 16:02 Erez Zilber
2010-06-28 19:07 ` Michael J Gruber
0 siblings, 1 reply; 4+ messages in thread
From: Erez Zilber @ 2010-06-28 16:02 UTC (permalink / raw)
To: git
Hi,
I saw that I can run git log with '--cherry-pick'. With this, if I run
"git log --cherry-pick branch_a..branch_b", it doesn't show
differences that are caused by cherry picks.
My question is: sometimes, cherry picking from branch_a to branch_b is
not immediate, and I need to adapt the patch that was committed on
branch_a to apply on branch_b. In other cases, git is able to apply
the patch on branch_b automatically (e.g. if there's only a line
offset). In such cases, will "git log --cherry-pick" ignore these
cherry-picks like it ignores cherry-picks that were applied without
any problem?
Thanks,
Erez
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git log and cherry-picks
2010-06-28 16:02 git log and cherry-picks Erez Zilber
@ 2010-06-28 19:07 ` Michael J Gruber
2010-06-28 20:25 ` Erez Zilber
0 siblings, 1 reply; 4+ messages in thread
From: Michael J Gruber @ 2010-06-28 19:07 UTC (permalink / raw)
To: Erez Zilber; +Cc: git
Erez Zilber venit, vidit, dixit 28.06.2010 18:02:
> Hi,
>
> I saw that I can run git log with '--cherry-pick'. With this, if I run
> "git log --cherry-pick branch_a..branch_b", it doesn't show
> differences that are caused by cherry picks.
>
> My question is: sometimes, cherry picking from branch_a to branch_b is
> not immediate, and I need to adapt the patch that was committed on
> branch_a to apply on branch_b. In other cases, git is able to apply
> the patch on branch_b automatically (e.g. if there's only a line
> offset). In such cases, will "git log --cherry-pick" ignore these
> cherry-picks like it ignores cherry-picks that were applied without
> any problem?
With --cherry-pick, log omits those commits whose associated patch has
the same patch-id (see "git patch-id").
Michael
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git log and cherry-picks
2010-06-28 19:07 ` Michael J Gruber
@ 2010-06-28 20:25 ` Erez Zilber
2010-07-05 5:39 ` Antriksh Pany
0 siblings, 1 reply; 4+ messages in thread
From: Erez Zilber @ 2010-06-28 20:25 UTC (permalink / raw)
To: Michael J Gruber; +Cc: git
On Mon, Jun 28, 2010 at 10:07 PM, Michael J Gruber
<git@drmicha.warpmail.net> wrote:
> Erez Zilber venit, vidit, dixit 28.06.2010 18:02:
>> Hi,
>>
>> I saw that I can run git log with '--cherry-pick'. With this, if I run
>> "git log --cherry-pick branch_a..branch_b", it doesn't show
>> differences that are caused by cherry picks.
>>
>> My question is: sometimes, cherry picking from branch_a to branch_b is
>> not immediate, and I need to adapt the patch that was committed on
>> branch_a to apply on branch_b. In other cases, git is able to apply
>> the patch on branch_b automatically (e.g. if there's only a line
>> offset). In such cases, will "git log --cherry-pick" ignore these
>> cherry-picks like it ignores cherry-picks that were applied without
>> any problem?
>
> With --cherry-pick, log omits those commits whose associated patch has
> the same patch-id (see "git patch-id").
>
> Michael
>
Is there another way to get over this (a commit that was cherry-picked
from branch_a to branch_b and had to be changed to be applied on
branch_b)?
Thanks,
Erez
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git log and cherry-picks
2010-06-28 20:25 ` Erez Zilber
@ 2010-07-05 5:39 ` Antriksh Pany
0 siblings, 0 replies; 4+ messages in thread
From: Antriksh Pany @ 2010-07-05 5:39 UTC (permalink / raw)
To: Erez Zilber; +Cc: Michael J Gruber, git
Well, I typically leave the commit subject (first line) the same even
if I make minor modifications to a cherry-picked commit.
If that's the case with you, you can write a basic shell script that
looks at the commit message and discards duplicates.
Cheers
Antriksh Pany
On Tue, Jun 29, 2010 at 1:55 AM, Erez Zilber <erezzi.list@gmail.com> wrote:
> On Mon, Jun 28, 2010 at 10:07 PM, Michael J Gruber
> <git@drmicha.warpmail.net> wrote:
>> Erez Zilber venit, vidit, dixit 28.06.2010 18:02:
>>> Hi,
>>>
>>> I saw that I can run git log with '--cherry-pick'. With this, if I run
>>> "git log --cherry-pick branch_a..branch_b", it doesn't show
>>> differences that are caused by cherry picks.
>>>
>>> My question is: sometimes, cherry picking from branch_a to branch_b is
>>> not immediate, and I need to adapt the patch that was committed on
>>> branch_a to apply on branch_b. In other cases, git is able to apply
>>> the patch on branch_b automatically (e.g. if there's only a line
>>> offset). In such cases, will "git log --cherry-pick" ignore these
>>> cherry-picks like it ignores cherry-picks that were applied without
>>> any problem?
>>
>> With --cherry-pick, log omits those commits whose associated patch has
>> the same patch-id (see "git patch-id").
>>
>> Michael
>>
>
> Is there another way to get over this (a commit that was cherry-picked
> from branch_a to branch_b and had to be changed to be applied on
> branch_b)?
>
> Thanks,
> Erez
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-05 5:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-28 16:02 git log and cherry-picks Erez Zilber
2010-06-28 19:07 ` Michael J Gruber
2010-06-28 20:25 ` Erez Zilber
2010-07-05 5:39 ` Antriksh Pany
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).