diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2005-06-06 19:34:27 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2005-06-06 19:34:27 +0000 |
commit | af2edcd6525bc73c69d086beb64da8daaed07c1d (patch) | |
tree | 8f86f3039c90a045b792e7a4cfb9406dd399a210 /quilt/diff.in | |
parent | ef7e2b2116af23fd32ae8040737c9ca0a523eb65 (diff) | |
download | quilt-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 'quilt/diff.in')
-rw-r--r-- | quilt/diff.in | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/quilt/diff.in b/quilt/diff.in index a15d25b..3840034 100644 --- a/quilt/diff.in +++ b/quilt/diff.in @@ -21,7 +21,7 @@ setup_colors usage() { - printf $"Usage: quilt diff [-p n] [-u|-U num|-c|-C num] [--combine patch|-z] [-R] [-P patch] [--snapshot] [--diff=utility] [--sort] [--color] [file ...]\n" + printf $"Usage: quilt diff [-p n] [-u|-U num|-c|-C num] [--combine patch|-z] [-R] [-P patch] [--snapshot] [--diff=utility] [--no-timestamps] [--no-index] [--sort] [--color] [file ...]\n" if [ x$1 = x-h ] then @@ -40,6 +40,9 @@ included. --no-timestamps Do not include file timestamps in patch headers. +--no-index + Do not output Index: lines. + -z Write to standard output the changes that have been made relative to the topmost or specified patch. @@ -133,7 +136,9 @@ die () exit $status } -options=`getopt -o p:P:RuU:cC:zh --long diff:,snapshot,no-timestamps,combine:,color::,sort -- "$@"` +options=`getopt -o p:P:RuU:cC:zh --long diff:,snapshot,no-timestamps \ + --long no-index,combine:,color:: \ + --long sort -- "$@"` if [ $? -ne 0 ] then @@ -192,6 +197,9 @@ do --no-timestamps) QUILT_NO_DIFF_TIMESTAMPS=1 shift ;; + --no-index) + QUILT_NO_DIFF_INDEX=1 + shift ;; --sort) opt_sort=1 shift ;; |