{"thread":{"id":"8862","subject":"[PATCH 1/2] filter-branch: make output nicer","startedAt":"2007-07-04T14:33:30Z","lastAt":"2007-07-04T14:33:30Z","messageCount":1,"participants":["Johannes Schindelin"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"46488","messageId":"Pine.LNX.4.64.0707041533130.4071@racer.site","threadId":"8862","inReplyTo":null,"subject":"[PATCH 1/2] filter-branch: make output nicer","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-07-04T14:33:30Z","receivedAt":"2007-07-04T14:33:30Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"\nInstead of filling the screen with progress lines, use \\r so that\nthe progress can be seen, but warning messages are more visible.\n\nSigned-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>\n---\n\n\tOkay, this is actually tested. Several times.\n\n git-filter-branch.sh |    8 ++++----\n 1 files changed, 4 insertions(+), 4 deletions(-)\n mode change 100644 => 100755 git-filter-branch.sh\n\ndiff --git a/git-filter-branch.sh b/git-filter-branch.sh\nold mode 100644\nnew mode 100755\nindex 22fb5bf..3bf5d88\n--- a/git-filter-branch.sh\n+++ b/git-filter-branch.sh\n@@ -160,7 +160,7 @@ test $commits -eq 0 && die \"Found nothing to rewrite\"\n i=0\n while read commit parents; do\n \ti=$(($i+1))\n-\tprintf \"$commit ($i/$commits) \"\n+\tprintf \"\\rRewrite $commit ($i/$commits)\"\n \n \tcase \"$filter_subdir\" in\n \t\"\")\n@@ -203,8 +203,8 @@ while read commit parents; do\n \n \tsed -e '1,/^$/d' <../commit | \\\n \t\teval \"$filter_msg\" | \\\n-\t\tsh -c \"$filter_commit\" \"git commit-tree\" $(git write-tree) $parentstr | \\\n-\t\ttee ../map/$commit\n+\t\tsh -c \"$filter_commit\" \"git commit-tree\" $(git write-tree) \\\n+\t\t\t$parentstr > ../map/$commit\n done <../revs\n \n src_head=$(tail -n 1 ../revs | sed -e 's/ .*//')\n@@ -256,6 +256,6 @@ fi\n \n cd ../..\n rm -rf \"$tempdir\"\n-echo \"Rewritten history saved to the $dstbranch branch\"\n+printf \"\\nRewritten history saved to the $dstbranch branch\\n\"\n \n exit $ret\n-- \n1.5.3.rc0.2646.g88600-dirty\n"}]}