Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
rebase -i: Fix numbers in progress report
author
Johannes Schindelin
<Johannes.Schindelin@gmx.de>
Tue, 25 Sep 2007 15:43:04 +0000
(16:43 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 26 Sep 2007 00:46:54 +0000
(17:46 -0700)
Instead of counting all lines in done and todo, we now count the actions
before outputting "$Rebasing ($count/$total)".
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase--interactive.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
376ccb8
)
diff --git
a/git-rebase--interactive.sh
b/git-rebase--interactive.sh
index cab5e93d60a46f4be76b7ba607b16425905d5e7b..efa83f61348f2603872d01a48cc9ae2ffaadc1ff 100755
(executable)
--- a/
git-rebase--interactive.sh
+++ b/
git-rebase--interactive.sh
@@
-72,8
+72,8
@@
mark_action_done () {
sed -e 1q < "$TODO" >> "$DONE"
sed -e 1d < "$TODO" >> "$TODO".new
mv -f "$TODO".new "$TODO"
- count=$(($(
wc -l < "$DONE"
)))
- total=$(($count+$(
wc -l < "$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
}