Code

Jakub's changes broke the progress message slightly.
authorAvery Pennarun <apenwarr@gmail.com>
Tue, 2 Feb 2010 15:30:11 +0000 (10:30 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 2 Feb 2010 15:30:11 +0000 (10:30 -0500)
We really need that ^M (\r), not a ^J (\n) if we want the status message to
overwrite itself nicely.

git-subtree.sh

index 66ce251eaafc41e607ee0dec37e8b172bf8f6c93..11cda9ea82b39c8e0a89bea3d5b6d25664743617 100755 (executable)
@@ -520,8 +520,7 @@ cmd_split()
        eval "$grl" |
        while read rev parents; do
                revcount=$(($revcount + 1))
-               say -n "$revcount/$revmax ($createcount)
-"
+               say -n "$revcount/$revmax ($createcount)\r"
                debug "Processing commit: $rev"
                exists=$(cache_get $rev)
                if [ -n "$exists" ]; then