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

How can I tell, from a script, if “git cherry-pick” fails?

From
KLKevin Layer <layer@known.net>
Date
Nov 2, 2016, 15:14 UTC
Message-ID
<CAGSZTjKg1=tMYgFiwys=ePVT+3p6KTa1mQ0fP9pPns-Nvd+6fA@mail.gmail.com>

If the cherry-pick fails due to a merge conflict, it just returns an exit status of 0. I have a script that does a series of cherry-picks and I need to know if they succeed.

I'm sure this has been covered before.
Using git version 1.8.3.1.
Thank you.
Kevin
Next: Kevin Layer
Message 1 of 3 in “How can I tell, from a script, if “git cherry-pick” fails?”
  1. Kevin LayerNov 2, 2016
  2. Kevin LayerNov 2, 2016
  3. Pranit BauvaNov 2, 2016

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.