aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-filter-branch.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-06-04 09:55:43 +0900
committerJunio C Hamano <gitster@pobox.com>2017-06-04 09:55:43 +0900
commit5160b821e9fe2804dde9451e4aae87d3c5af9754 (patch)
treec19c816308e1f0987ae4b4ce5b1e432b752eabf7 /Documentation/git-filter-branch.txt
parent634ccf4ca3c62330dbad09eb0a0869e9521bdc65 (diff)
parentba746ff9c931000d123aff35cfa922093dc29380 (diff)
downloadgit-5160b821e9fe2804dde9451e4aae87d3c5af9754.tar.gz
Merge branch 'ah/doc-filter-branch-export-env'
Docfix. * ah/doc-filter-branch-export-env: doc: filter-branch does not require re-export of vars
Diffstat (limited to 'Documentation/git-filter-branch.txt')
-rw-r--r--Documentation/git-filter-branch.txt5
1 files changed, 1 insertions, 4 deletions
diff --git a/Documentation/git-filter-branch.txt b/Documentation/git-filter-branch.txt
index 6e4bb02204..7b695dbb72 100644
--- a/Documentation/git-filter-branch.txt
+++ b/Documentation/git-filter-branch.txt
@@ -86,8 +86,7 @@ OPTIONS
This filter may be used if you only need to modify the environment
in which the commit will be performed. Specifically, you might
want to rewrite the author/committer name/email/time environment
- variables (see linkgit:git-commit-tree[1] for details). Do not forget
- to re-export the variables.
+ variables (see linkgit:git-commit-tree[1] for details).
--tree-filter <command>::
This is the filter for rewriting the tree and its contents.
@@ -340,12 +339,10 @@ git filter-branch --env-filter '
if test "$GIT_AUTHOR_EMAIL" = "root@localhost"
then
GIT_AUTHOR_EMAIL=john@example.com
- export GIT_AUTHOR_EMAIL
fi
if test "$GIT_COMMITTER_EMAIL" = "root@localhost"
then
GIT_COMMITTER_EMAIL=john@example.com
- export GIT_COMMITTER_EMAIL
fi
' -- --all
--------------------------------------------------------