summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 376ccb8)
raw | patch | inline | side by side (parent: 376ccb8)
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>
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 |
index cab5e93d60a46f4be76b7ba607b16425905d5e7b..efa83f61348f2603872d01a48cc9ae2ffaadc1ff 100755 (executable)
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
}