Skip to content

Commit ba746ff

Browse files
asheidukgitster
authored andcommitted
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 6f6826c in 2007. Therefore the filter scripts don't need to re-eport them again. Signed-off-by: Andreas Heiduk <[email protected]> Reviewed-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 840ed14 commit ba746ff

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Documentation/git-filter-branch.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ OPTIONS
8686
This filter may be used if you only need to modify the environment
8787
in which the commit will be performed. Specifically, you might
8888
want to rewrite the author/committer name/email/time environment
89-
variables (see linkgit:git-commit-tree[1] for details). Do not forget
90-
to re-export the variables.
89+
variables (see linkgit:git-commit-tree[1] for details).
9190

9291
--tree-filter <command>::
9392
This is the filter for rewriting the tree and its contents.
@@ -342,12 +341,10 @@ git filter-branch --env-filter '
342341
if test "$GIT_AUTHOR_EMAIL" = "root@localhost"
343342
then
344343
345-
export GIT_AUTHOR_EMAIL
346344
fi
347345
if test "$GIT_COMMITTER_EMAIL" = "root@localhost"
348346
then
349347
350-
export GIT_COMMITTER_EMAIL
351348
fi
352349
' -- --all
353350
--------------------------------------------------------

0 commit comments

Comments
 (0)