forked from pool/patch
7c1a299de1
OBS-URL: https://build.opensuse.org/package/show/devel:tools/patch?expand=0&rev=d8fc6c51ce681fb6c01e6f1d9cced28f
25 lines
833 B
Diff
25 lines
833 B
Diff
Index: patch-2.6.1.64-4762/src/patch.c
|
|
===================================================================
|
|
--- patch-2.6.1.64-4762.orig/src/patch.c
|
|
+++ patch-2.6.1.64-4762/src/patch.c
|
|
@@ -622,6 +622,7 @@ static struct option const longopts[] =
|
|
{"posix", no_argument, NULL, CHAR_MAX + 7},
|
|
{"quoting-style", required_argument, NULL, CHAR_MAX + 8},
|
|
{"reject-format", required_argument, NULL, CHAR_MAX + 9},
|
|
+ {"unified-reject-files", no_argument, NULL, CHAR_MAX + 1001},
|
|
{NULL, no_argument, NULL, 0}
|
|
};
|
|
|
|
@@ -902,6 +903,11 @@ get_some_switches (void)
|
|
else
|
|
usage (stderr, 2);
|
|
break;
|
|
+ case CHAR_MAX + 1001:
|
|
+ say ("warning: the `--unified-reject-files' option is obsolete; use "
|
|
+ "`--reject-format=unified' instead\n");
|
|
+ reject_format = UNI_DIFF;
|
|
+ break;
|
|
default:
|
|
usage (stderr, 2);
|
|
}
|