Skip to content

Commit

Permalink
set FILTER_BRANCH_SQUELCH_WARNING=1
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Dec 6, 2023
1 parent 0181c8f commit c7745fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ local filter="
"

if [[ $_global ]]; then
git filter-branch --force --env-filter "$filter" --tag-name-filter cat -- --branches --tags
FILTER_BRANCH_SQUELCH_WARNING=1 git filter-branch --force --env-filter "$filter" --tag-name-filter cat -- --branches --tags
else
git filter-branch --force --env-filter "$filter"
FILTER_BRANCH_SQUELCH_WARNING=1 git filter-branch --force --env-filter "$filter"
fi
if [[ $_push ]]; then
git push
Expand Down Expand Up @@ -212,7 +212,7 @@ if [[ ! $_author && ! $_committer ]]; then
return 1
fi

git filter-branch --force --env-filter "
FILTER_BRANCH_SQUELCH_WARNING=1 git filter-branch --force --env-filter "
if [ \$GIT_COMMIT = $_COMMIT_HASH ]; then
if [ $_author ]; then
export GIT_AUTHOR_DATE='$_NEW_DATE'
Expand Down
6 changes: 3 additions & 3 deletions modules/git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,9 @@ local filter="
"

if [[ $_global ]]; then
git filter-branch --force --env-filter "$filter" --tag-name-filter cat -- --branches --tags
FILTER_BRANCH_SQUELCH_WARNING=1 git filter-branch --force --env-filter "$filter" --tag-name-filter cat -- --branches --tags
else
git filter-branch --force --env-filter "$filter"
FILTER_BRANCH_SQUELCH_WARNING=1 git filter-branch --force --env-filter "$filter"
fi
if [[ $_push ]]; then
git push
Expand Down Expand Up @@ -519,7 +519,7 @@ if [[ ! $_author && ! $_committer ]]; then
return 1
fi

git filter-branch --force --env-filter "
FILTER_BRANCH_SQUELCH_WARNING=1 git filter-branch --force --env-filter "
if [ \$GIT_COMMIT = $_COMMIT_HASH ]; then
if [ $_author ]; then
export GIT_AUTHOR_DATE='$_NEW_DATE'
Expand Down

0 comments on commit c7745fe

Please sign in to comment.