SHA256
1
0
forked from pool/patch
patch/unified-reject-files-compat.diff

25 lines
833 B
Diff
Raw Normal View History

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);
}