Re: Unexpected cherry-pick behaviour

2013-12-16 Thread Junio C Hamano
"Philip Oakley" writes: > From: "Philip Oakley" >> From: "Junio C Hamano" , Saturday, December 14, >> 2013 7:39 PM >>> "Philip Oakley" writes: >>> Would this be a good use of the * Magic pathspecs like ":(icase) that was recently released (v1.8.5 2Dec13) so that the merge >>

Re: Unexpected cherry-pick behaviour

2013-12-16 Thread Philip Oakley
From: "Philip Oakley" From: "Junio C Hamano" , Saturday, December 14, 2013 7:39 PM "Philip Oakley" writes: Would this be a good use of the * Magic pathspecs like ":(icase) that was recently released (v1.8.5 2Dec13) so that the merge stages can be named. Because the pathspec mechahis

Re: Unexpected cherry-pick behaviour

2013-12-15 Thread Philip Oakley
From: "Junio C Hamano" , Saturday, December 14, 2013 7:39 PM "Philip Oakley" writes: Would this be a good use of the * Magic pathspecs like ":(icase) that was recently released (v1.8.5 2Dec13) so that the merge stages can be named. Because the pathspec mechahism is for you to tell an op

Re: Unexpected cherry-pick behaviour

2013-12-14 Thread Antoine Pelisse
On Sat, Dec 14, 2013 at 8:33 PM, Junio C Hamano wrote: > Antoine Pelisse writes: > >> If you only want to see the diff applied to master, you >> should run: >> >> $ git diff --ours > > Does "git diff HEAD" have the same/similar effect? Yes, it does produce the same output as --ours. >> You

Re: Unexpected cherry-pick behaviour

2013-12-14 Thread Junio C Hamano
"Philip Oakley" writes: > Would this be a good use of the >* Magic pathspecs like ":(icase) > that was recently released (v1.8.5 2Dec13) so that the merge stages > can be named. Because the pathspec mechahism is for you to tell an operation that works on a collection of paths (e.g. "all th

Re: Unexpected cherry-pick behaviour

2013-12-14 Thread Junio C Hamano
Antoine Pelisse writes: > If you only want to see the diff applied to master, you > should run: > > $ git diff --ours Does "git diff HEAD" have the same/similar effect? > You can also have a look at what is currently being applied: > > $ git diff :1:gcc/tree-ssa-threadedge.c :3:gcc/tree

Re: Unexpected cherry-pick behaviour

2013-12-14 Thread Philip Oakley
- Original Message - From: "Antoine Pelisse" You can also have a look at what is currently being applied: $ git diff :1:gcc/tree-ssa-threadedge.c :3:gcc/tree-ssa-threadedge.c By the way, does anybody know a better way to do that ? I happen to do that quite a lot when fixing c

Re: Unexpected cherry-pick behaviour

2013-12-14 Thread Antoine Pelisse
On Wed, Dec 11, 2013 at 12:19 PM, Paulo Matos wrote: > On 11/12/2013 11:09, Antoine Pelisse wrote: >>> >>> >>> I don't know how to interpret the fact that the line you sent (with the >>> obvious --conflicts being --conflict) outputs nothing... >> >> >> That is expected. git-checkout with this opti

Re: Unexpected cherry-pick behaviour

2013-12-11 Thread Paulo Matos
On 11/12/2013 11:09, Antoine Pelisse wrote: I don't know how to interpret the fact that the line you sent (with the obvious --conflicts being --conflict) outputs nothing... That is expected. git-checkout with this option [1] will reset the conflict on gcc/tree-ssa-threadedge.c file to the in

Re: Unexpected cherry-pick behaviour

2013-12-11 Thread Antoine Pelisse
On Wed, Dec 11, 2013 at 11:04 AM, Paulo Matos wrote: > On 10/12/2013 19:34, Junio C Hamano wrote: >> >> Perhaps immediately after "cherry-pick" stopped and asked your help >> to resolve the conflicts, running >> >> $ git checkout --conflicts=diff3 gcc/tree-ssa-threadedge.c >> >> and lookin

Re: Unexpected cherry-pick behaviour

2013-12-11 Thread Paulo Matos
On 10/12/2013 19:34, Junio C Hamano wrote: Perhaps immediately after "cherry-pick" stopped and asked your help to resolve the conflicts, running $ git checkout --conflicts=diff3 gcc/tree-ssa-threadedge.c and looking at the file again may show you what is going on better. I don't know

Re: Unexpected cherry-pick behaviour

2013-12-10 Thread Junio C Hamano
Paulo Matos writes: > Note how there are changes that are not part of the cherry-picked > patch outside of the conflicting zone. This is trouble some because it > means that when I go in to fix a patch and look only at the > conflicting zone, I will have code outside the zone, that are _not_ > pa

Unexpected cherry-pick behaviour

2013-12-10 Thread Paulo Matos
Hi, I have installed latest 1.8.5.1 git to confirm the behaviour I had seen in previous versions. What I see is that when I cherry-pick a patch across two branches (source and destination) in a repository, cherry-pick picks changes from the source branch which do not exist in the cherry-pick