[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vc-got 12ca62f 034/145: implement vc-got-diff-switches
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vc-got 12ca62f 034/145: implement vc-got-diff-switches |
Date: |
Thu, 9 Sep 2021 15:58:28 -0400 (EDT) |
branch: externals/vc-got
commit 12ca62f2d57553ed120e902a25bd3231825de240
Author: Omar Polo <op@omarpolo.com>
Commit: Omar Polo <op@omarpolo.com>
implement vc-got-diff-switches
---
vc-got.el | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/vc-got.el b/vc-got.el
index 083718c..7182391 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -112,6 +112,14 @@
(defvar vc-got-cmd "got"
"The got command.")
+(defcustom vc-got-diff-switches t
+ "String or list of strings specifying switches for Got 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)))
+
;; helpers
(defun vc-got-root (file)
@@ -274,7 +282,8 @@ DIR-OR-FILE."
(defun vc-got--diff (&rest args)
"Call got diff with ARGS. The result will be stored in the current buffer."
(apply #'vc-got--call "diff"
- (mapcar #'file-relative-name args)))
+ (append (vc-switches 'got 'diff)
+ (mapcar #'file-relative-name args))))
;; Backend properties
@@ -489,8 +498,6 @@ LIMIT limits the number of commits, optionally starting at
START-REVISION."
(vc-got--log nil nil nil nil pattern))))
;; TODO: async
-;; TODO: we should append (vc-switches 'got 'diff) to the switches.
-;; This by default is ("-u") and causes an error.
;; TODO: return 0 or 1
(defun vc-got-diff (files &optional rev1 rev2 buffer _async)
"Insert into BUFFER (or *vc-diff*) the diff for FILES from REV1 to REV2."
- [elpa] externals/vc-got a8466f0 022/145: implement dir-extra-headers, (continued)
- [elpa] externals/vc-got a8466f0 022/145: implement dir-extra-headers, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 9ad1eb5 025/145: implemented vc-got-log-outgoing, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got a5e9be3 029/145: fix table, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got cdd3e16 030/145: use vc-find-root instead of vc-got-root, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 6eda2f1 035/145: vc-got-log-incoming, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 986bd9a 038/145: fix diff on multiple files, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 0e25fbe 039/145: expand the vc function status list, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got e79563b 044/145: make got program customizable, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 45b0e76 023/145: typo in vc-got-pull, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 5dec261 033/145: kill got stage/unstage buffer after utilisation and introduce unstage-all, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 12ca62f 034/145: implement vc-got-diff-switches,
ELPA Syncer <=
- [elpa] externals/vc-got 406d7b4 037/145: switch to GPLv3, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got b34e96f 036/145: Emacs upstream has fixed the documentation, comment not needed, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got df20ca2 040/145: add vc-got--program-version command to return version number, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got d54ceb8 041/145: make got program be customizable, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 7c257a7 042/145: Merge pull request #1 from zmyrgel/feature/expand-implementation-status, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got f09d635 045/145: Merge pull request #2 from zmyrgel/feature/add-version-command, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got febb894 043/145: Add new customization group `vc-got' under vc, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got a2474a4 048/145: improve vc-got-dir-status-files, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 7bb16f7 053/145: implement conflicted-files, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 3cdb075 058/145: update status list a bit, ELPA Syncer, 2021/09/09