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

Re: [BUG] cherry-pick ignores some arguments

From
Carlos Martín Nieto <cmn@elego.de>
Date
Jun 14, 2012, 16:29 UTC
Message-ID
<1339691389.4625.9.camel@beez.lab.cmartin.tk>
In-Reply-To
<20120614114415.39cbb64c@chalon.bertin.fr>
On Thu, 2012-06-14 at 11:44 +0200, Yann Dirson wrote:
Show 5 quoted lines
> Hello list,
> 
> I just did a "git cherry-pick AAA BBB..CCC" using 1.7.10.3, and was surprised
> that only the BBB..CCC range got picked - AAA was silently ignored.
> 

There is no way to know whether this is a bug without knowing how AAA, BBB and ccc are related? From the names, can we assume that AAA is a (grand)parent of BBB? If that is the case, cherry-pick is behaving as expected.

See the DESCRIPTION in http://git-scm.com/docs/git-rev-list for further explanation, but the short of the story is that the second argument told it to ignore any commit before BBB, so AAA is not in the list of commits to be applied.

   cmn
Previous: Yann DirsonNext: Yann Dirson
Message 2 of 11 in “[BUG] cherry-pick ignores some arguments”
  1. Yann DirsonJun 14, 2012
  2. Carlos Martín NietoJun 14, 2012
  3. Yann DirsonJun 15, 2012
  4. Carlos Martín NietoJun 15, 2012
  5. 1/2 Documentation: --no-walk is no-op if range is specifiedCarlos Martín Nieto, Jun 15, 2012
  6. 2/2 git-cherry-pick.txt: make clearer when revision walking gets activatedCarlos Martín Nieto, Jun 15, 2012
  7. Junio C HamanoJun 15, 2012
  8. Junio C HamanoJun 15, 2012
  9. Carlos Martín NietoJun 15, 2012
  10. Junio C HamanoJun 15, 2012
  11. Junio C HamanoJun 15, 2012

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.