{"thread":{"id":"8858","subject":"[PATCH] filter-branch: make output nicer","startedAt":"2007-07-04T12:45:49Z","lastAt":"2007-07-04T13:25:34Z","messageCount":3,"participants":["Johannes Schindelin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"46475","messageId":"Pine.LNX.4.64.0707041345230.4071@racer.site","threadId":"8858","inReplyTo":null,"subject":"[PATCH] filter-branch: make output nicer","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-07-04T12:45:49Z","receivedAt":"2007-07-04T12:45:49Z","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 git-filter-branch.sh |    6 +++---\n 1 files changed, 3 insertions(+), 3 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..e320379\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\t(sh -c \"$filter_commit\" \"git commit-tree\" $(git write-tree)\n+\t\t\t$parentstr) 2> /dev/null > ../map/$commit\n done <../revs\n \n src_head=$(tail -n 1 ../revs | sed -e 's/ .*//')\n-- \n1.5.3.rc0.2646.g88600-dirty\n"},{"id":"46476","messageId":"Pine.LNX.4.64.0707041349330.4071@racer.site","threadId":"8858","inReplyTo":"Pine.LNX.4.64.0707041345230.4071@racer.site","subject":"[PATCH] filter-branch: make output nicer","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-07-04T12:50:26Z","receivedAt":"2007-07-04T12:50:26Z","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\tOops. Forgot the last output line.\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\nindex 22fb5bf..c9a64b0\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\t(sh -c \"$filter_commit\" \"git commit-tree\" $(git write-tree)\n+\t\t\t$parentstr) 2> /dev/null > ../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"},{"id":"46481","messageId":"Pine.LNX.4.64.0707041421190.4071@racer.site","threadId":"8858","inReplyTo":"Pine.LNX.4.64.0707041349330.4071@racer.site","subject":"Re: [PATCH] filter-branch: make output nicer","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-07-04T13:25:34Z","receivedAt":"2007-07-04T13:25:34Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Wed, 4 Jul 2007, Johannes Schindelin wrote:\n\n> -\t\tsh -c \"$filter_commit\" \"git commit-tree\" $(git write-tree) $parentstr | \\\n> -\t\ttee ../map/$commit\n> +\t\t(sh -c \"$filter_commit\" \"git commit-tree\" $(git write-tree)\n> +\t\t\t$parentstr) 2> /dev/null > ../map/$commit\n\nAargh! I seem to be unable to get anything right today. This should be\n\n+\t\tsh -c \"$filter_commit\" \"git commit-tree\" $(git write-tree) \\\n+\t\t\t$parentstr > ../map/$commit\n\nAh well. I think I play a little more with it, and resubmit the patch. \nPlease ignore.\n\nCiao,\nDscho\n"}]}