GNU bug report logs -
#66211
30.0.50; C-x v v in vc-diff does not work with lesser versionf of patch
Previous Next
Reported by: "Alfred M. Szmidt" <ams <at> gnu.org>
Date: Tue, 26 Sep 2023 12:19:02 UTC
Severity: normal
Found in version 30.0.50
Done: Dmitry Gutov <dmitry <at> gutov.dev>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 66211 <at> debbugs.gnu.org (full text, mbox):
On 26/09/2023 15:43, Alfred M. Szmidt wrote:
> > The C-x v v command in a*vc-diff* buffer does not work if you have a
> > lesser version of patch, e.g., the one on OpenBSD:
> >
> > user-error: Patch failed: patch: unknown option -- no-backup-if-mismatch
> > usage: patch [-bCcEeflNnRstuv] [-B backup-prefix] [-D symbol] [-d directory]
> > [-F max-fuzz] [-i patchfile] [-o out-file] [-p strip-count]
> > [-r rej-name] [-V t | nil | never] [-x number] [-z backup-ext]
> > [--posix] [origfile [patchfile]]
> > patch <patchfile
>
> Thanks for the report.
>
> Any idea how to implement the same thing using your version of 'patch'?
>
> Maybe just pass --posix for both GNU patch and other patch?
All right. Does this work for you?
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index 2f4b028bb4a..356da5ddfac 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -1724,7 +1724,8 @@ vc-default-checkin-patch
nil
"-p1"
"-r" null-device
- "--no-backup-if-mismatch"
+ "--posix"
+ "--remove-empty-files"
"-i" "-"))
(user-error "Patch failed: %s" (buffer-string))))
(vc-call-backend backend 'checkin files comment))
This bug report was last modified 1 year and 217 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.