diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2007-07-04 18:33:30 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-07-04 23:43:02 +0400 |
commit | 5efb48b5ed7dd6838962a7b25845c6d8e2d40422 (patch) | |
tree | 6566ffbd3f144904dc3c82ea2c9bd41f0bd7b99d | |
parent | 586e4ce2487932b2ae770aad17d343b9021080e0 (diff) |
filter-branch: make output nicer
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>
-rwxr-xr-x[-rw-r--r--] | git-filter-branch.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/git-filter-branch.sh b/git-filter-branch.sh index 5fa9b61740..c22266b486 100644..100755 --- a/git-filter-branch.sh +++ b/git-filter-branch.sh @@ -164,7 +164,7 @@ test $commits -eq 0 && die "Found nothing to rewrite" i=0 while read commit parents; do i=$(($i+1)) - printf "$commit ($i/$commits) " + printf "\rRewrite $commit ($i/$commits)" case "$filter_subdir" in "") @@ -207,8 +207,8 @@ while read commit parents; do 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/ .*//') @@ -260,6 +260,6 @@ fi cd ../.. rm -rf "$tempdir" -echo "Rewritten history saved to the $dstbranch branch" +printf "\nRewritten history saved to the $dstbranch branch\n" exit $ret |