aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/patch.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix/patch.c')
-rw-r--r--toys/posix/patch.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/toys/posix/patch.c b/toys/posix/patch.c
index 4850d5df..3234a1f0 100644
--- a/toys/posix/patch.c
+++ b/toys/posix/patch.c
@@ -14,11 +14,10 @@
* -r rejectfile write rejected hunks to this file
*
* -E remove empty files --remove-empty-files
- * -f force (no questions asked)
* -F fuzz (number, default 2)
* [file] which file to patch
-USE_PATCH(NEWTOY(patch, "(dry-run)"USE_TOYBOX_DEBUG("x")"ulp#d:i:Rs(quiet)", TOYFLAG_USR|TOYFLAG_BIN))
+USE_PATCH(NEWTOY(patch, "(no-backup-if-mismatch)(dry-run)"USE_TOYBOX_DEBUG("x")"g#fulp#d:i:Rs(quiet)", TOYFLAG_USR|TOYFLAG_BIN))
config PATCH
bool "patch"
@@ -50,7 +49,7 @@ config PATCH
GLOBALS(
char *i, *d;
- long p;
+ long p, g;
struct double_list *current_hunk;
long oldline, oldlen, newline, newlen;