Re: All I wanted was git-fast-export

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Sat, 9 Feb 2008, Paul Gardiner wrote:

> Johannes Schindelin wrote:
> 
> > On Sat, 9 Feb 2008, Paul Gardiner wrote:
> > 
> > > With your kind help, I've been able to convert a cvs repository to 
> > > git, but the last several years commits start with a line saying 
> > > "Summary;" :-( I thought it might not be hard to put a filter 
> > > between git-fast-export and git-fast-import to sort it out.
> > 
> > The better tool for this should be filter-branch.
> 
> filter-branch does look to be brilliant for this sort of thing,
> but I don't think I can use it in my case.

I beg to differ.  filter-branch does exactly the same as the fast-export | 
filter | fast-import you prosed does: it rewrites history.

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

There's also a further upside to filter-branch: at least until recently, 
it did not use any special features of newer git, but could be extracted 
(e.g. via gitweb) and used with older git (any git >= 1.5.3 should do, 
maybe even older ones).

Hth,
Dscho

P.S.: but you seem to be dead-set to upgrade.  No problem for me: just go 
ahead and do what you must.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux