summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/patch.c
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2014-06-22 20:29:51 +0000
committerpfg <pfg@FreeBSD.org>2014-06-22 20:29:51 +0000
commitb27356ce84a7bb2a16ba3d07fc06181afd13ad73 (patch)
tree6f1d1bec755c2e575e6991443e1304afa59b8911 /usr.bin/patch/patch.c
parent031b23ab3197da29793c53cf3524652fba44ddfc (diff)
downloadFreeBSD-src-b27356ce84a7bb2a16ba3d07fc06181afd13ad73.zip
FreeBSD-src-b27356ce84a7bb2a16ba3d07fc06181afd13ad73.tar.gz
MFC r267512:
patch: add dry-run alias for compatibility with other implementations. Other implementations of patch(1), including GNU patch and "svn patch" have a --dry-run option which does the same as our -C or --check option. Add a new alias to make our implementation more compatible.
Diffstat (limited to 'usr.bin/patch/patch.c')
-rw-r--r--usr.bin/patch/patch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c
index 7a53284..85daf7f 100644
--- a/usr.bin/patch/patch.c
+++ b/usr.bin/patch/patch.c
@@ -469,6 +469,7 @@ get_some_switches(void)
{"context", no_argument, 0, 'c'},
{"debug", required_argument, 0, 'x'},
{"directory", required_argument, 0, 'd'},
+ {"dry-run", no_argument, 0, 'C'},
{"ed", no_argument, 0, 'e'},
{"force", no_argument, 0, 'f'},
{"forward", no_argument, 0, 'N'},
OpenPOWER on IntegriCloud