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

Re: All I wanted was git-fast-export

From
PGPaul Gardiner <osronline@glidos.net>
Date
Feb 17, 2008, 17:00 UTC
Message-ID
<47B86818.7010706@glidos.net>
In-Reply-To
<alpine.LSU.1.00.0802101248260.11591@racer.site>
Johannes Schindelin wrote:
Show 27 quoted lines
> Hi,
> 
> [please do not look the other way when you respond to me, i.e. do not cull 
> me from the Cc: list.  Thankyouverymuch]
> 
> On Sun, 10 Feb 2008, Paul Gardiner wrote:
> 
>> Johannes Schindelin wrote:
>>
>>> The thing is, filter-branch was _written for this purpose_.  So if you 
>>> know what commit you rewrote last, you can make the process 
>>> faster/safer by issuing
>>>
>>> 	$ git filter-branch --msg-filter="<blabla>" <old-commit>..master
>> That does look just what I need, but did you see the reason I thought I 
>> couldn't use it? I need to repeatedly sync the git repository from a 
>> live cvs repository, and repeatedly filter the new commit messages.
> 
> Oh, I thought you saw why I put in that "<old-commit>...".  You do not 
> really need it, as filter-branch will come up with the _same_ commit 
> hashes, unless _something_ was changed.
> 
> IOW if you have only commits without that "Summary: " prefix, the 
> filter-branch call will be a (not so cheap) no-op.
> 
> But of course, I meant to suggest (admittedly, in a very short short-hand) 
> that you use "git filter-branch ... origin@{1}..origin" after cvsimport.

I'm still struggling a bit to understand ref specs. I'm using --all at the moment, but that's very slow. What I need is to filter the new commits of all branches. Will origin@{1}..origin do that, or does it just affect master?

P.
Previous: Paul Gardiner
Message 9 of 9 in “All I wanted was git-fast-export”
  1. Paul GardinerFeb 9, 2008
  2. Johannes SchindelinFeb 9, 2008
  3. Paul GardinerFeb 9, 2008
  4. Johannes SchindelinFeb 10, 2008
  5. Paul GardinerFeb 10, 2008
  6. Johannes SchindelinFeb 10, 2008
  7. Paul GardinerFeb 10, 2008
  8. Paul GardinerFeb 13, 2008
  9. Paul GardinerFeb 17, 2008

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.