diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2007-11-28 15:50:38 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-28 15:19:35 -0800 |
commit | 16ed34ad35d9a991a72b2db420ff95bc260990cc (patch) | |
tree | 12eee4ad26c206c18fcd3deaa2766fa1b9118131 /t/t5516-fetch-push.sh | |
parent | git-stash: do not get fooled with "color.diff = true" (diff) | |
download | tgif-16ed34ad35d9a991a72b2db420ff95bc260990cc.tar.xz |
filter-branch: fix dirty way to provide the helpers to commit filters
The helper functions 'map' and 'skip_commit' were provided to commit
filters by sourcing filter-branch itself. This was done with a certain
environment variable set to indicate that only the functions should be
defined, and the script should return then.
This was really hacky, and it did not work all that well, since the
full path to git-filter-branch was not known at all times.
Avoid that by putting the functions into a variable, and eval'ing
that variable. The commit filter gets these functions by prepending
the variable to the specified commands.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5516-fetch-push.sh')
0 files changed, 0 insertions, 0 deletions