summaryrefslogtreecommitdiffstats
path: root/quilt
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2005-09-02 17:02:12 +0000
committerJean Delvare <khali@linux-fr.org>2005-09-02 17:02:12 +0000
commite3f78107482ec3215cb0670cc0eac867866c57bb (patch)
treef58a6ea4da646cfa81fe81026c06970a41a911e4 /quilt
parentc8a84309dd30f0d62d22df06a13320f7cac66c4f (diff)
downloadquilt-e3f78107482ec3215cb0670cc0eac867866c57bb.tar.gz
refresh.in: Drop a useless line in the awk script replacing the diffstat
section in patch headers. Improve the regular expression matching diffstat lines. Original patch from John Vandenberg.
Diffstat (limited to 'quilt')
-rw-r--r--quilt/refresh.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/quilt/refresh.in b/quilt/refresh.in
index c393be3..9fcf3f0 100644
--- a/quilt/refresh.in
+++ b/quilt/refresh.in
@@ -263,12 +263,11 @@ then
for (i=1; i in arr; i++)
print prefix arr[i]
}
- BEGIN { split(diffstat, ds_arr, /\n/) }
{ prefix=""
if (index($0, "#") == 1)
prefix="#"
}
- /^#? .* \| / { eat = eat $0 "\n"
+ /^#? .* \| *[1-9][0-9]* / { eat = eat $0 "\n"
next }
/^#? .* files? changed(, .* insertions?\(\+\))?(, .* deletions?\(-\))?/ \
{ print_diffstat()