[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/vc-fossil b632993 050/111: Handle switches in diff command
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/vc-fossil b632993 050/111: Handle switches in diff command. |
Date: |
Wed, 29 Sep 2021 08:59:19 -0400 (EDT) |
branch: elpa/vc-fossil
commit b63299313f924b4080396c46e3c9fe09838e2413
Author: fifr <fifr>
Commit: fifr <fifr>
Handle switches in diff command.
---
vc/el/vc-fossil.el | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/vc/el/vc-fossil.el b/vc/el/vc-fossil.el
index 535f620..ba2f7bc 100644
--- a/vc/el/vc-fossil.el
+++ b/vc/el/vc-fossil.el
@@ -39,6 +39,22 @@
(eval-when-compile (require 'vc))
+;;; Customization
+
+(defgroup vc-fossil nil
+ "VC Fossil backend."
+ :group 'vc)
+
+(defcustom vc-fossil-diff-switches t ; Fossil doesn't support common args like
-u
+ "String or list of strings specifying switches for Fossil diff under VC.
+If nil, use the value of `vc-diff-switches'. If t, use no switches."
+ :type '(choice (const :tag "Unspecified" nil)
+ (const :tag "None" t)
+ (string :tag "Argument String")
+ (repeat :tag "Argument List" :value ("") string))
+ :group 'vc-fossil)
+
+
;;; BACKEND PROPERTIES
(defun vc-fossil-revision-granularity () 'repository)
@@ -260,8 +276,10 @@ If `files` is nil return the status for all files."
(let ((buf (or buffer "*vc-diff*")))
(apply #'vc-fossil-command
buf 0 file "diff" "-i"
- `(,@(if rev1 `("--from" ,rev1) '())
- ,@(if rev2 `("--to" ,rev2) '())))))
+ (nconc
+ (and rev1 (list "--from" rev1))
+ (and rev2 (list "--to" rev2))
+ (vc-switches 'Fossil 'diff)))))
;;; TAG SYSTEM
- [nongnu] elpa/vc-fossil acb773e 098/111: Merge Changes, (continued)
- [nongnu] elpa/vc-fossil acb773e 098/111: Merge Changes, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil abdb548 099/111: Update to pdo's latest, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil f365e43 110/111: vc-fossil.el: Update from fossil., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 9e52264 028/111: emacs style (cont), some logic issues seem apparent..., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 7c5af95 102/111: enable Fossil VC backend at load / autoload time, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 93c2104 101/111: Merge pull request #1 from barak/trunk, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil bf1969f 033/111: Undo file-truename in log because emacs-23.3.1 gives relative names which confuse fossil., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil c058f3d 039/111: Remove debug message from `vc-fossil-after-dir-status`., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil f4795ba 044/111: Pass `vc-checkout-switches` on checkout., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 6619ffb 048/111: Improve log command., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil b632993 050/111: Handle switches in diff command.,
ELPA Syncer <=
- [nongnu] elpa/vc-fossil 560d708 051/111: Implement annotate commanad., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 169cff6 053/111: Suppress echo message when enabling word wrap in log view., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil e2ec578 060/111: Use `vc-fossil-command` if the output is inserted in a buffer., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 5b0c159 067/111: Updates from Frank Fisher. colorized logs, vc-annotate, fixes for the diff command, ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 5089a96 076/111: Enhanced vc-fossil-dir-extra-headers function., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 34b0ed9 096/111: Merged., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil d03f490 090/111: Added package installation instructions., ELPA Syncer, 2021/09/29
- [nongnu] elpa/vc-fossil 00ff203 031/111: Allow .fslckout in Unix as fossil db name. (for [769989987d]), ELPA Syncer, 2021/09/29