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

Re: Rewriting references to existing commits in commit messages with filter-branch

From
VZVadim Zeitlin <vz-git@zeitlins.org>
Date
Mar 11, 2013, 12:23 UTC
Message-ID
<loom.20130311T131746-169@post.gmane.org>
In-Reply-To
<87haki2la2.fsf@gmx.li>
Lawrence Mitchell <wence <at> gmx.li> writes:
Show 8 quoted lines
> Vadim Zeitlin wrote:
> 
> [...]
> 
> > git filter-branch --msg-filter svnmsg2git --tag-name-filter cat -- --all
> 
> git rev-list lists by default in chronological order.  Do you
> want to pass --topo-order as one of the rev-list options?
 Thanks, this looked like a good idea but reading git-filter-branch code it
seems to already do it, at
https://github.com/git/git/blob/master/git-filter-branch.sh#L269 you can see
that it does "git rev-list --reverse --topo-order ...".
 So this probably won't help (I could try it just in case I'm missing something
but the first errors appear after almost 2 hours of running...). Notice that I
could well be wrong in my explanation of what happens, perhaps it's not related
to the order of processing of the branches/trunk at all. All I know is that when
a chronologically later commit referring to preceding one on a different branch
is processed by git-filter-branch, sometimes (or perhaps even always) the file
corresponding to the previous commit is not yet present in .git-rewrite/map
directory.
 Thanks again for any help with this,
VZ
Previous: Lawrence MitchellNext: Thomas Rast
Message 3 of 7 in “Rewriting references to existing commits in commit messages with filter-branch”
  1. Vadim ZeitlinMar 11, 2013
  2. Lawrence MitchellMar 11, 2013
  3. Vadim ZeitlinMar 11, 2013
  4. Thomas RastMar 11, 2013
  5. Vadim ZeitlinMar 11, 2013
  6. Michael HaggertyMar 11, 2013
  7. Vadim ZeitlinMar 11, 2013

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.