Re: git filter-branch --prune-empty not removing commits
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/