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

Re: git filter-branch --prune-empty not removing commits

From
MOMartijn van Oosterhout <kleptog@gmail.com>
Date
Feb 8, 2013, 16:53 UTC
Message-ID
<CADWG95skLryj0gxSzmxviP1E=9T8oN0r64gpu3_7P6qMZkDq_g@mail.gmail.com>
In-Reply-To
<CADWG95sHx6Z2Ukon8FAHKa1qUOj4shd4MbCwahwX++FVWJPDDg@mail.gmail.com>
On 8 February 2013 16:23, Martijn van Oosterhout <kleptog@gmail.com> wrote:
Show 11 quoted lines
>  git_commit_non_empty_tree()
>  {
> +        if test $# = 1 && test -z "$(git ls-tree $1)" ; then
> +                skip_commit "$@"
> +        fi
>          if test $# = 3 && test "$1" = $(git rev-parse "$3^{tree}"); then
>                  map "$3"
>          else
>                  git commit-tree "$@"
>          fi
>  }
This bit is a but bunk, the fi should be an else, otherwise it does nothing.
Have a nice day,
-- 
Martijn van Oosterhout <kleptog@gmail.com> http://svana.org/kleptog/
Previous: Martijn van Oosterhout
Message 2 of 2 in “git filter-branch --prune-empty not removing commits”
  1. Martijn van OosterhoutFeb 8, 2013
  2. Martijn van OosterhoutFeb 8, 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.