Re: Converting repo from HG, `git filter-branch --prune-empty -- --all` is extremely slow and errors out.
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Sep 13, 2013, 09:15 UTC
- Message-ID
- <CAMP44s0gHKTgw3xm6qRnvJk9S=p7ndMU6cwt3Ju38pBWbO_Syg@mail.gmail.com>
- In-Reply-To
- <CAMP44s1cmcfSuB-TnFL+-57i5W=EA8v322rVDoUELCPF948jPw@mail.gmail.com>
On Thu, Sep 12, 2013 at 7:47 PM, Felipe Contreras <felipe.contreras@gmail.com> wrote:
Show 8 quoted lines
> Indeed, I remember writing my own simplified version of 'git > filter-branch' that was much faster. If I recall correctly, the trick > was avoiding 'git write-tree' which can be done if you are not using > any tree filter, but 'git filter-branch' is not that smart. > > If all you want to do is prune empty commits, it should be easy to > write a script that simply does 'git commit-tree'. I might decide to > do that based on my script if I have time today.
Here it is, it's straightforward and should be easy to understand.
-- Felipe Contreras