summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Quinson <mquinson@debian.org>2004-06-11 18:18:33 +0000
committerMartin Quinson <mquinson@debian.org>2004-06-11 18:18:33 +0000
commit1d265f2943315578f99eeb14a99016ebbdb15e39 (patch)
tree6e83e258fff79a22912f74428b79a23fc3e0bbbc
parent1ac722c36b830875f261d9025f9c108c4055bff1 (diff)
downloadquilt-1d265f2943315578f99eeb14a99016ebbdb15e39.tar.gz
Add a --no-timestaps option
-rw-r--r--quilt/diff.in10
-rw-r--r--quilt/refresh.in12
2 files changed, 17 insertions, 5 deletions
diff --git a/quilt/diff.in b/quilt/diff.in
index 6eb2156..fd1eef8 100644
--- a/quilt/diff.in
+++ b/quilt/diff.in
@@ -49,7 +49,11 @@ included.
--diff=utility
Use the specified utility for generating the diff. The utility
- is invoked with the original and new file name as arguments."
+ is invoked with the original and new file name as arguments.
+
+--no-timestamps
+ Do not include file timestamps in patch headers (as if
+ QUILT_DIFF_NO_TIMESTAMPS were set to yes)."
exit 0
else
exit 1
@@ -91,7 +95,7 @@ die ()
exit $status
}
-options=`getopt -o p:P:c:Rzh --long diff:,snapshot -- "$@"`
+options=`getopt -o p:P:c:Rzh --long diff:,snapshot,no-timestamps -- "$@"`
if [ $? -ne 0 ]
then
@@ -139,6 +143,8 @@ do
--diff)
opt_diff="$2"
shift 2 ;;
+ --no-timestamps)
+ QUILT_DIFF_NO_TIMESTAMPS=yes ;;
--)
shift
break ;;
diff --git a/quilt/refresh.in b/quilt/refresh.in
index aac2c26..c490373 100644
--- a/quilt/refresh.in
+++ b/quilt/refresh.in
@@ -19,7 +19,7 @@ fi
usage()
{
- echo $"Usage: quilt refresh [-p n] [-f] [patch]"
+ echo $"Usage: quilt refresh [-p n] [-f] [--no-timestamps] [patch]"
if [ x$1 = x-h ]
then
@@ -39,7 +39,11 @@ patch.
-p n Create a -p n style patch (-p0 or -p1 supported).
-f Force refresh, even if more recent patches modify
- some of the same files."
+ some of the same files.
+
+--no-timestamps
+ Do not include file timestamps in patch headers (as if
+ QUILT_DIFF_NO_TIMESTAMPS were set to yes)."
exit 0
else
exit 1
@@ -54,7 +58,7 @@ die ()
exit $status
}
-options=`getopt -o p:fh -- "$@"`
+options=`getopt -o p:fh --long no-timestamps -- "$@"`
if [ $? -ne 0 ]
then
@@ -74,6 +78,8 @@ do
shift ;;
-h)
usage -h ;;
+ --no-timestamps)
+ QUILT_DIFF_NO_TIMESTAMPS=yes ;;
--)
shift
break ;;