# [PATCH] git-cherry-pick -x works with conflicting commits

4 messages from 2008-03-24 to 2008-03-24. Participants: Rafael Garcia-Suarez, Jean-Baptiste Quenot.
Thread: https://gitlist.dev/t/12838

## Rafael Garcia-Suarez, 2008-03-24 10:41

Subject: [PATCH] git-cherry-pick -x works with conflicting commits
Message-ID: <1206355274-6052-1-git-send-email-rgarciasuarez@gmail.com>
URL: https://gitlist.dev/e/1206355274-6052-1-git-send-email-rgarciasuarez%40gmail.com

```
So this patch fixes the docs to reflect that.

Signed-off-by: Rafael Garcia-Suarez <rgarciasuarez@gmail.com>
---
 Documentation/git-cherry-pick.txt |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/Documentation/git-cherry-pick.txt b/Documentation/git-cherry-pick.txt
index f0beb41..475e168 100644
--- a/Documentation/git-cherry-pick.txt
+++ b/Documentation/git-cherry-pick.txt
@@ -29,8 +29,7 @@ OPTIONS
 -x::
 	When recording the commit, append to the original commit
 	message a note that indicates which commit this change
-	was cherry-picked from.  Append the note only for cherry
-	picks without conflicts.  Do not use this option if
+	was cherry-picked from.  Do not use this option if
 	you are cherry-picking from your private branch because
 	the information is useless to the recipient.  If on the
 	other hand you are cherry-picking between two publicly
-- 
1.5.5.rc1

```

## Jean-Baptiste Quenot, 2008-03-24 13:55

Subject: Re: [PATCH] git-cherry-pick -x works with conflicting commits
Message-ID: <ae63f8b50803240655k5d6413e5s8d6ceebca462370f@mail.gmail.com>
URL: https://gitlist.dev/e/ae63f8b50803240655k5d6413e5s8d6ceebca462370f%40mail.gmail.com
In-Reply-To: <1206355274-6052-1-git-send-email-rgarciasuarez@gmail.com>

```
When I'm using "git commit -c <id>" as suggested by git-cherry-pick
upon conflict, I do not get the mention "(cherry picked from commit
<id>)", at least with version 1.5.4.1.  How did you get it?

Cheers,
-- 
Jean-Baptiste Quenot
http://caraldi.com/jbq/blog/

```

## Rafael Garcia-Suarez, 2008-03-24 14:52

Subject: Re: [PATCH] git-cherry-pick -x works with conflicting commits
Message-ID: <b77c1dce0803240752s29e611aay55c4021741de598a@mail.gmail.com>
URL: https://gitlist.dev/e/b77c1dce0803240752s29e611aay55c4021741de598a%40mail.gmail.com
In-Reply-To: <ae63f8b50803240655k5d6413e5s8d6ceebca462370f@mail.gmail.com>

```
On 24/03/2008, Jean-Baptiste Quenot <jbq@caraldi.com> wrote:
> When I'm using "git commit -c <id>" as suggested by git-cherry-pick
>  upon conflict, I do not get the mention "(cherry picked from commit
>  <id>)", at least with version 1.5.4.1.  How did you get it?

I use the most recent git from master, and simply do git-add and
git-commit without arguments after having resolving the conflict. The
commit message in MERGE_MSG, that I checked, does have the "cherry
picked from commit <id>" mention (before the conflict list).

```

## Jean-Baptiste Quenot, 2008-03-24 18:32

Subject: Re: [PATCH] git-cherry-pick -x works with conflicting commits
Message-ID: <ae63f8b50803241132s2938ae17s79257fdb7938ba79@mail.gmail.com>
URL: https://gitlist.dev/e/ae63f8b50803241132s2938ae17s79257fdb7938ba79%40mail.gmail.com
In-Reply-To: <b77c1dce0803240752s29e611aay55c4021741de598a@mail.gmail.com>

```
All right, I see.  The conflict error message was confusing me:

------------------------------------------------------------------------
fatal: Entry 'azerty' would be overwritten by merge. Cannot merge.
Automatic cherry-pick failed.  After resolving the conflicts,
mark the corrected paths with 'git add <paths>' or 'git rm <paths>'
and commit the result.
When commiting, use the option '-c c17532f' to retain authorship and message.
------------------------------------------------------------------------

The last sentence does not make much sense when -x is specified.

Cheers,
-- 
Jean-Baptiste Quenot
http://caraldi.com/jbq/blog/

```
