Skip to content

Commit f166aab

Browse files
committed
Merge branch 'ah/doc-filter-branch-export-env' into maint
Docfix. * ah/doc-filter-branch-export-env: doc: filter-branch does not require re-export of vars
2 parents e06b421 + ba746ff commit f166aab

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.
@@ -340,12 +339,10 @@ git filter-branch --env-filter '
340339
if test "$GIT_AUTHOR_EMAIL" = "root@localhost"
341340
then
342341
343-
export GIT_AUTHOR_EMAIL
344342
fi
345343
if test "$GIT_COMMITTER_EMAIL" = "root@localhost"
346344
then
347345
348-
export GIT_COMMITTER_EMAIL
349346
fi
350347
' -- --all
351348
--------------------------------------------------------

0 commit comments

Comments
 (0)