quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Quilt-dev] [PATCH] fix diffstat garbage output


From: Josh Boyer
Subject: [Quilt-dev] [PATCH] fix diffstat garbage output
Date: Mon, 23 May 2005 21:29:16 -0500

Hi,

When the --diffstat option is used with 'quilt ref', one gets output
like the following:

address@hidden quilt]$ quilt refresh
/tmp/quilt_refresh.N21384
.
Refreshed patch fix-diffstat-garbage.patch

The listing of the temporary file and the extra "." or ".." characters
is just noise.  The following patch should fix it so this is no longer
printed.

thx,
josh

----

 quilt/refresh.in |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: quilt/quilt/refresh.in
===================================================================
--- quilt.orig/quilt/refresh.in 2005-05-23 20:40:18.713534256 -0500
+++ quilt/quilt/refresh.in      2005-05-23 21:24:13.218028696 -0500
@@ -243,7 +243,7 @@ tmp_result=$(gen_tempfile) || die 1
 
 if [ -n "$opt_diffstat" ]
 then
-       diffstat="$(@DIFFSTAT@ -p$opt_strip_level $tmp_patch)" || die 1
+       diffstat="$(@DIFFSTAT@ -p$opt_strip_level $tmp_patch 2> /dev/null)" || 
die 1
        @AWK@ '
            function print_diffstat(arr, i) {
              split(diffstat, arr, "\n")





reply via email to

[Prev in Thread] Current Thread [Next in Thread]