filter-branch: add `--setup` step
commit3b117f730185ec8acdc8f1b680b9f0a9b647fc0f
authorAndreas Heiduk <asheiduk@gmail.com>
Sat, 10 Jun 2017 08:54:44 +0000 (10 10:54 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Jun 2017 16:44:54 +0000 (12 09:44 -0700)
tree75bf64d5d8600a47921cfaa7a3d0bd7abc601c99
parent41dd4330a1210003bd702ec4a9301ed68e60864d
filter-branch: add `--setup` step

A `--setup` step in `git filter-branch` makes it much easier to
define the initial values of variables used in the real filters.
Also sourcing/defining utility functions here instead of
`--env-filter` improves performance and minimizes clogging the
output in case of errors.

Signed-off-by: Andreas Heiduk <asheiduk@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-filter-branch.txt
git-filter-branch.sh