git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-cherry-pick: improve description of -x.

From
Frank Lichtenheld <frank@lichtenheld.de>
Date
Oct 19, 2007, 21:11 UTC
Message-ID
<20071019211152.GN3917@planck.djpig.de>
In-Reply-To
<20071019174134.GD9906@ins.uni-bonn.de>
On Fri, Oct 19, 2007 at 07:41:34PM +0200, Ralf Wildenhues wrote:
> Further, I am surprised that -x seems to be nonfunctional when the
> cherry pick introduces a conflict.  Example:
[...]
Show 5 quoted lines
> The prototype commit message now does not contain the
> | (cherry picked from commit ...).
> 
> Is that by design (because there were conflicts) or an omission?
> In case of the former, maybe the description of -x should mention this.

git commit currently doesn't know that you commit a cherry-pick. The -c only says to use the commit message of the original commit. So this is currently by design.

Show 16 quoted lines
> diff --git a/Documentation/git-cherry-pick.txt b/Documentation/git-cherry-pick.txt
> index 47b1e8c..c7d83ce 100644
> --- a/Documentation/git-cherry-pick.txt
> +++ b/Documentation/git-cherry-pick.txt
> @@ -27,10 +27,10 @@ OPTIONS
>  	message prior committing.
>  
>  -x::
> -	Cause the command to append which commit was
> -	cherry-picked after the original commit message when
> -	making a commit.  Do not use this option if you are
> -	cherry-picking from your private branch because the
> +	When recording the commit, the original commit message will
> +	be appended with a note that indicates which commit this
> +	change was cherry-picked from.  Do not use this option if
> +	you are cherry-picking from your private branch because the

Is "will be appended with" correct English? Sounds odd to me (but I'm no native speaker, so it might be perfectly fine).

Gruesse,
-- 
Frank Lichtenheld <frank@lichtenheld.de>
www: http://www.djpig.de/
Previous: Ralf WildenhuesNext: Shawn O. Pearce
Message 2 of 6 in “git-cherry-pick: improve description of -x.”
  1. git-cherry-pick: improve description of -x.Ralf Wildenhues, Oct 19, 2007
  2. Frank LichtenheldOct 19, 2007
  3. Shawn O. PearceOct 20, 2007
  4. Ralf WildenhuesOct 21, 2007
  5. Shawn O. PearceOct 22, 2007
  6. Ralf WildenhuesOct 22, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.