summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 586e4ce)
raw | patch | inline | side by side (parent: 586e4ce)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Wed, 4 Jul 2007 14:33:30 +0000 (15:33 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 4 Jul 2007 19:43:02 +0000 (12:43 -0700) |
Instead of filling the screen with progress lines, use \r so that
the progress can be seen, but warning messages are more visible.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
the progress can be seen, but warning messages are more visible.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-filter-branch.sh | [changed mode: 0644->0755] | patch | blob | history |
diff --git a/git-filter-branch.sh b/git-filter-branch.sh
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
i=0
while read commit parents; do
i=$(($i+1))
- printf "$commit ($i/$commits) "
+ printf "\rRewrite $commit ($i/$commits)"
case "$filter_subdir" in
"")
sed -e '1,/^$/d' <../commit | \
eval "$filter_msg" | \
- sh -c "$filter_commit" "git commit-tree" $(git write-tree) $parentstr | \
- tee ../map/$commit
+ sh -c "$filter_commit" "git commit-tree" $(git write-tree) \
+ $parentstr > ../map/$commit
done <../revs
src_head=$(tail -n 1 ../revs | sed -e 's/ .*//')
cd ../..
rm -rf "$tempdir"
-echo "Rewritten history saved to the $dstbranch branch"
+printf "\nRewritten history saved to the $dstbranch branch\n"
exit $ret