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

How to rebase when some commit hashes are in some commit messages

From
FBFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>
Date
Oct 12, 2015, 19:59 UTC
Message-ID
<561C1132.3090606@orange.fr>
Hello,
[I try some search engines without success, perhaps I have missed something].

For example, if I rebase the following commits, I would want that if the commit hash 2222222... become 7777777..., the message "Update test output for 2222222222222222222222222222222222222222" become "Update test output for 7777777..."

Is it possible currently? And if yes how?

Greetings, Francois-Xavier

-------------------------------------------------------------------
commit 6666666666666666666666666666666666666666
Author: First Last <first.last@example.com>
Date:  Fri Jul 3 17:14:58 2015 -0700
Fix 5
xxx xxx xxx xxx
commit 5555555555555555555555555555555555555555
Author: First Last <first.last@example.com>
Date:  Fri Jul 3 16:58:58 2015 -0700
Update test output for 2222222222222222222222222222222222222222
commit 4444444444444444444444444444444444444444
Author: First Last <first.last@example.com>
Date:  Fri Jul 3 17:50:27 2015 -0700
Fix 4
commit 3333333333333333333333333333333333333333
Author: First Last <first.last@example.com>
Date:  Fri Jul 3 15:01:36 2015 -0700
Fix 3
xxx xxx xxx xxx
commit 2222222222222222222222222222222222222222
Author: First Last <first.last@example.com>
Date:  Fri Jul 3 11:20:28 2015 -0700
Fix 2
xxx xxx xxx xxx
commit 1111111111111111111111111111111111111111
Author: First Last <first.last@example.com>
Date:  Fri Jul 3 09:15:59 2015 -0700
Fix 1
xxx xxx xxx xxx
-------------------------------------------------------------------
Next: Matthieu Moy
Message 1 of 17 in “How to rebase when some commit hashes are in some commit messages”
  1. Francois-Xavier Le BailOct 12, 2015
  2. Matthieu MoyOct 12, 2015
  3. Francois-Xavier Le BailOct 13, 2015
  4. Konstantin KhomoutovOct 13, 2015
  5. Philip OakleyOct 13, 2015
  6. Jacob KellerOct 13, 2015
  7. Mike RappazzoOct 13, 2015
  8. Philip OakleyOct 13, 2015
  9. Jacob KellerOct 13, 2015
  10. Philip OakleyOct 13, 2015
  11. Francois-Xavier Le BailOct 15, 2015
  12. Francois-Xavier Le BailOct 15, 2015
  13. Francois-Xavier Le BailOct 15, 2015
  14. Johannes SchindelinOct 15, 2015
  15. Philip OakleyOct 16, 2015
  16. Thomas KochOct 18, 2015
  17. Ævar Arnfjörð BjarmasonOct 18, 2015

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.