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

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
Previous: Felipe Contreras
Message 3 of 3 in “Converting repo from HG, `git filter-branch --prune-empty -- --all` is extremely slow and errors out.”
  1. John GietzenSep 12, 2013
  2. Felipe ContrerasSep 13, 2013
  3. Felipe ContrerasSep 13, 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.