doc: filter-branch does not require re-export of vars

The function `set_ident` in `filter-branch` exported the variables
GIT_(AUTHOR|COMMITTER)_(NAME|EMAIL|DATE) at least since 6f6826c52b in 2007.
Therefore the filter scripts don't need to re-eport them again.

Signed-off-by: Andreas Heiduk <asheiduk@gmail.com>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Andreas Heiduk 2017-05-26 19:36:54 +02:00 committed by Junio C Hamano
parent 840ed14198
commit ba746ff9c9
1 changed files with 1 additions and 4 deletions

View File

@ -86,8 +86,7 @@ OPTIONS
This filter may be used if you only need to modify the environment This filter may be used if you only need to modify the environment
in which the commit will be performed. Specifically, you might in which the commit will be performed. Specifically, you might
want to rewrite the author/committer name/email/time environment want to rewrite the author/committer name/email/time environment
variables (see linkgit:git-commit-tree[1] for details). Do not forget variables (see linkgit:git-commit-tree[1] for details).
to re-export the variables.


--tree-filter <command>:: --tree-filter <command>::
This is the filter for rewriting the tree and its contents. This is the filter for rewriting the tree and its contents.
@ -342,12 +341,10 @@ git filter-branch --env-filter '
if test "$GIT_AUTHOR_EMAIL" = "root@localhost" if test "$GIT_AUTHOR_EMAIL" = "root@localhost"
then then
GIT_AUTHOR_EMAIL=john@example.com GIT_AUTHOR_EMAIL=john@example.com
export GIT_AUTHOR_EMAIL
fi fi
if test "$GIT_COMMITTER_EMAIL" = "root@localhost" if test "$GIT_COMMITTER_EMAIL" = "root@localhost"
then then
GIT_COMMITTER_EMAIL=john@example.com GIT_COMMITTER_EMAIL=john@example.com
export GIT_COMMITTER_EMAIL
fi fi
' -- --all ' -- --all
-------------------------------------------------------- --------------------------------------------------------