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

Tracking cherry picks

From
PSPhillip Susi <psusi@cfl.rr.com>
Date
Oct 20, 2011, 14:21 UTC
Message-ID
<4EA02E6C.2040608@cfl.rr.com>

I need to maintain a few stable release branches in addition to the master branch. Sometimes a bug is found and the fix needs applied to multiple branches. I would like to be able to list what branches the fix has been applied to to validate that it went in everywhere it was needed, but after cherry-picking the fix from master to the stable branches, the SHA1 of the commit is different, and so git branch --contains does not think the commit was applied to each of the stable branches.

Is there a way around this? Why doesn't git-cherrypick record the original SHA1 it was picked from in the commit?

Next: Kirill Likhodedov
Message 1 of 4 in “Tracking cherry picks”
  1. Phillip SusiOct 20, 2011
  2. Kirill LikhodedovOct 20, 2011
  3. Ramkumar RamachandraOct 20, 2011
  4. Jonathan NiederOct 21, 2011

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.