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

Re: [PATCH 4/4] Add git-rewrite-commits

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 8, 2007, 18:17 UTC
Message-ID
<Pine.LNX.4.64.0707081911160.4248@racer.site>
In-Reply-To
<20070708173027.GK1528MdfPADPa@greensroom.kotnet.org>
Hi,
On Sun, 8 Jul 2007, Sven Verdoolaege wrote:
Show 6 quoted lines
> On Sun, Jul 08, 2007 at 05:37:22PM +0100, Johannes Schindelin wrote:
> > That is to be expected.  After all, the first is a script.  However, I 
> > really have ask: how often per hour do you want to run that program?
> 
> I have a project that needs some cleaning-up and I'd like to do it 
> incrementally.  I think I'll have to run it about a dozen times.

A dozen times seems not that bad, especially since you can run both programs on a limited set of commits. So the cost is not that big.

Show 7 quoted lines
> > I am really unhappy that so much is talked about filtering out 
> > commits.  That is amost certainly not what you want in most cases.  
> > In particular, I suspect that most users would expect the _changes_ 
> > filtered out by such a command, which is just not true.
> 
> I don't care about that either.  I'm just mentioning it because it's 
> mentioned in the git-filter-branch documentation (which you added).

Which I copied. And this is not the first, let alone the only example in filter-branch's documentation.

Show 7 quoted lines
> > The second is to rewrite the commit messages so that the hashes are 
> > mapped, too.  But that should be relatively easy, too: you can provide 
> > a message filter, and you can use the provided "map" function.  If 
> > this seems to be what many people need, you can write a simple 
> > function and put it into filter-branch for common use.
> 
> It's not going to be me (as I sais, I don't like shell programming).
Yes, you made that clear.
However, this leaves things only in half-finished states.
- "git filter-branch" did not learn the useful features that you seem to 
  need, and
- your builtin is at most a start of a builtin replacement for 
  filter-branch, which changes the semantics, to be sure.

I have no doubts that it will stay that way for a while, since this builtin seems to be good enough for what you want it to do.

Ciao, Dscho

Previous: Sven VerdoolaegeNext: Sven Verdoolaege
Message 8 of 25 in “Add git-rewrite-commits”
  1. 0/4 Add git-rewrite-commitsskimo@liacs.nl, Jul 8, 2007
  2. 1/4 export get_short_sha1skimo@liacs.nl, Jul 8, 2007
  3. 2/4 export add_ref_decorationskimo@liacs.nl, Jul 8, 2007
  4. 3/4 revision: mark commits that didn't match a pattern for later useskimo@liacs.nl, Jul 8, 2007
  5. 4/4 Add git-rewrite-commitsskimo@liacs.nl, Jul 8, 2007
  6. Johannes SchindelinJul 8, 2007
  7. Sven VerdoolaegeJul 8, 2007
  8. Johannes SchindelinJul 8, 2007
  9. Sven VerdoolaegeJul 8, 2007
  10. Steven GrimmJul 8, 2007
  11. Sven VerdoolaegeJul 8, 2007
  12. Johannes SchindelinJul 8, 2007
  13. Sven VerdoolaegeJul 8, 2007
  14. Johannes SixtJul 9, 2007
  15. Sven VerdoolaegeJul 9, 2007
  16. Johannes SchindelinJul 9, 2007
  17. Johannes SchindelinJul 8, 2007
  18. Sven VerdoolaegeJul 9, 2007
  19. Johannes SchindelinJul 9, 2007
  20. Sven VerdoolaegeJul 9, 2007
  21. Johannes SchindelinJul 9, 2007
  22. Sven VerdoolaegeJul 9, 2007
  23. Johannes SchindelinJul 9, 2007
  24. Jeff KingJul 9, 2007
  25. Johannes SchindelinJul 9, 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.