summaryrefslogtreecommitdiffstats
path: root/scripts/patchfns.in
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2005-06-06 19:34:27 +0000
committerAndreas Gruenbacher <agruen@suse.de>2005-06-06 19:34:27 +0000
commitaf2edcd6525bc73c69d086beb64da8daaed07c1d (patch)
tree8f86f3039c90a045b792e7a4cfb9406dd399a210 /scripts/patchfns.in
parentef7e2b2116af23fd32ae8040737c9ca0a523eb65 (diff)
downloadquilt-af2edcd6525bc73c69d086beb64da8daaed07c1d.tar.gz
- Add --no-index option to diff and refresh commands: Suppress
Index: lines in the patch. From Jean Delvare <khali@linux-fr.org>.
Diffstat (limited to 'scripts/patchfns.in')
-rw-r--r--scripts/patchfns.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/patchfns.in b/scripts/patchfns.in
index 1ef7825..b1eaf5a 100644
--- a/scripts/patchfns.in
+++ b/scripts/patchfns.in
@@ -579,8 +579,11 @@ diff_file()
--label "$old_hdr$old_date" --label "$new_hdr$new_date" \
| if read line
then
- echo "Index: $index"
- echo "==================================================================="
+ if [ -z "$QUILT_NO_DIFF_INDEX" ]
+ then
+ echo "Index: $index"
+ echo "==================================================================="
+ fi
echo "$line"
cat
fi