X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-rebase--interactive.sh;h=402ff3782c0aaa472a2013ff3a9bef44a6cd8550;hb=4f395eed33816be70181a818cbce4bb7235b83be;hp=acdcc5417a45d1419c8316734e3b742123e5aad4;hpb=887ad79865d862a0a3aef4b59957d7dd95d0507d;p=git.git diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh index acdcc5417..402ff3782 100755 --- a/git-rebase--interactive.sh +++ b/git-rebase--interactive.sh @@ -73,14 +73,19 @@ comment_for_reflog () { esac } +last_count= mark_action_done () { sed -e 1q < "$TODO" >> "$DONE" sed -e 1d < "$TODO" >> "$TODO".new mv -f "$TODO".new "$TODO" count=$(($(grep -ve '^$' -e '^#' < "$DONE" | wc -l))) total=$(($count+$(grep -ve '^$' -e '^#' < "$TODO" | wc -l))) - printf "Rebasing (%d/%d)\r" $count $total - test -z "$VERBOSE" || echo + if test "$last_count" != "$count" + then + last_count=$count + printf "Rebasing (%d/%d)\r" $count $total + test -z "$VERBOSE" || echo + fi } make_patch () {