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

[PATCH 0/6] Add git-rewrite-commits v2

From
Sskimo@liacs.nl <skimo@liacs.nl>
Date
Jul 12, 2007, 19:05 UTC
Message-ID
<11842671631744-git-send-email-skimo@liacs.nl>
From: Sven Verdoolaege <skimo@kotnet.org>

[PATCH 1/6] revision: allow selection of commits that do not match a pattern [PATCH 2/6] export get_short_sha1 [PATCH 3/6] Define ishex(x) in git-compat-util.h [PATCH 4/6] refs.c: lock cached_refs during for_each_ref [PATCH 5/6] revision: mark commits that didn't match a pattern for later use [PATCH 6/6] Add git-rewrite-commits

The first is fairly independent, but it is used in the tests of the last patch and may be replaced by Johannes' extended patch. The next three should be fairly uncontroversial. The fifth may be considered a waste of a precious bit. If so, any suggestions for other ways of passing on this information are welcomed. The sixth contains the actual git-rewrite-commits builtin. My main motivation was that cg-admin-rewritehist doesn't change the SHA1's in commit message and I don't like shell programming.

The main difference with the previous series is that the options are now called --index-filter and --commit-filter instead of --index-map and --commit-map.

The commit filter should now produce a list of commit SHA1 instead of the modified raw commit. The refs are now rewritten at the very end, which should be safer if anything goes wrong along the way and obviates the need for the call to add_ref_decoration of the previous series.

Most of the changes were requested by Johannes Schindelin. I'm sure he'll let me know if I forgot anything. In a follow-up patch (series), he will add more helper functions for the filters.

skimo
Next: skimo@liacs.nl
Message 1 of 23 in “Add git-rewrite-commits v2”
  1. 0/6 Add git-rewrite-commits v2skimo@liacs.nl, Jul 12, 2007
  2. 1/6 revision: allow selection of commits that do not match a patternskimo@liacs.nl, Jul 12, 2007
  3. 2/6 export get_short_sha1skimo@liacs.nl, Jul 12, 2007
  4. 3/6 Define ishex(x) in git-compat-util.hskimo@liacs.nl, Jul 12, 2007
  5. Johannes SchindelinJul 14, 2007
  6. 4/6 refs.c: lock cached_refs during for_each_refskimo@liacs.nl, Jul 12, 2007
  7. 5/6 revision: mark commits that didn't match a pattern for later useskimo@liacs.nl, Jul 12, 2007
  8. 6/6 Add git-rewrite-commitsskimo@liacs.nl, Jul 12, 2007
  9. Sven VerdoolaegeJul 13, 2007
  10. Johannes SchindelinJul 14, 2007
  11. Junio C HamanoJul 14, 2007
  12. Sven VerdoolaegeJul 15, 2007
  13. Sven VerdoolaegeJul 14, 2007
  14. Sven VerdoolaegeJul 15, 2007
  15. Johannes SchindelinJul 16, 2007
  16. Sven VerdoolaegeJul 16, 2007
  17. Johannes SchindelinJul 18, 2007
  18. Sven VerdoolaegeJul 18, 2007
  19. Sven VerdoolaegeJul 16, 2007
  20. Sven VerdoolaegeJul 16, 2007
  21. Johannes SchindelinJul 18, 2007
  22. Johannes SchindelinJul 18, 2007
  23. Sven VerdoolaegeJul 19, 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.