filter-branch: skip commits present on --state-branch
commit709cfe848ad2312f80e6f4f7a27aa5d23992a0e3
authorMichael Barabanov <michael.barabanov@gmail.com>
Tue, 26 Jun 2018 04:07:33 +0000 (25 21:07 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Jun 2018 22:44:53 +0000 (26 15:44 -0700)
treecf3aea0991e10ca1bc2fd058b2b49a98e454056c
parentfc54c1af3ec09bab8b8ea09768c2da4069b7f53e
filter-branch: skip commits present on --state-branch

The commits in state:filter.map have already been processed, so don't
filter them again. This makes incremental git filter-branch much faster.

Also add tests for --state-branch option.

Signed-off-by: Michael Barabanov <michael.barabanov@gmail.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-filter-branch.sh
t/t7003-filter-branch.sh