diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index 9a09ba138244b1665de78e94ce12fb8fdb878758..b90d3df3a7db97dbc8a16e9e73b705d52bf8fd20 100755 (executable)
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
do
case "$force,$name" in
,$orig_namespace*)
- die "Namespace $orig_namespace not empty"
+ die "Cannot create a new backup.
+A previous backup already exists in $orig_namespace
+Force overwriting the backup with -f"
;;
t,$orig_namespace*)
git update-ref -d "$name" $sha1
# Rewrite the commits
-i=0
+git_filter_branch__commit_count=0
while read commit parents; do
- i=$(($i+1))
- printf "\rRewrite $commit ($i/$commits)"
+ git_filter_branch__commit_count=$(($git_filter_branch__commit_count+1))
+ printf "\rRewrite $commit ($git_filter_branch__commit_count/$commits)"
case "$filter_subdir" in
"")