Code

filter-branch: provide the convenience functions also for commit filters
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Fri, 31 Aug 2007 19:05:36 +0000 (20:05 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 1 Sep 2007 06:22:51 +0000 (23:22 -0700)
commit7e0f1704b837355d833d84d18a3811d145867b97
treed8373eb4b75792ae70aa800e9c5dad84e57cfa9b
parentf0fd889d7ff02efe8ee4a25ae2380db47c128682
filter-branch: provide the convenience functions also for commit filters

Move the convenience functions to the top of git-filter-branch.sh, and
return from the script when the environment variable SOURCE_FUNCTIONS is
set.

By sourcing git-filter-branch with that variable set automatically, all
commit filters may access the convenience functions like "map".

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-filter-branch.txt
git-filter-branch.sh
t/t7003-filter-branch.sh