summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2003-01-30 16:12:49 +0000
committerAndreas Gruenbacher <agruen@suse.de>2003-01-30 16:12:49 +0000
commita3f2faa3f909a4f95367815d68d749c6c25a6596 (patch)
tree215b80d7f0a5caa068439a32454bae642238445a /lib
parenta12dc9e53eb69300f130b20765bf859f956b308d (diff)
downloadquilt-a3f2faa3f909a4f95367815d68d749c6c25a6596.tar.gz
Add changelog and fix patch_description for "Index:" lines in patches
Diffstat (limited to 'lib')
-rw-r--r--lib/patchfns.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/patchfns.in b/lib/patchfns.in
index 463fb30..b6dd5cf 100644
--- a/lib/patchfns.in
+++ b/lib/patchfns.in
@@ -585,13 +585,13 @@ patch_description()
if [ -e "$patch_file" ]
then
awk '
- /^--- / { exit }
- diff_line { print diff_line
- diff_line=""
- }
- /^diff / { diff_line=$0
- next
- }
+ $1 == "---" { exit }
+ $1 == "Index:" { eat = eat $0
+ next }
+ $1 == "diff" { eat = eat $0
+ next }
+ eat { print eat
+ eat="" }
{ print }
' $patch_file
fi