[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vc-got d54ceb8 041/145: make got program be customizabl
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vc-got d54ceb8 041/145: make got program be customizable |
Date: |
Thu, 9 Sep 2021 15:58:29 -0400 (EDT) |
branch: externals/vc-got
commit d54ceb890b973c9f1af37a21789f52f5db830a37
Author: Timo Myyrä <timo.myyra@bittivirhe.fi>
Commit: Timo Myyrä <timo.myyra@bittivirhe.fi>
make got program be customizable
other platforms might have different name for got or it might not be in
PATH so provide means to customize it.
---
vc-got.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/vc-got.el b/vc-got.el
index 6b0b0c0..2e1eecb 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -106,8 +106,9 @@
(require 'vc-got-stage)
-(defvar vc-got-cmd "got"
- "The got command.")
+(defcustom vc-got-program "got"
+ "Name of the Got executable (excluding any arguments)."
+ :type 'string)
(defcustom vc-got-diff-switches t
"String or list of strings specifying switches for Got diff under VC.
@@ -139,8 +140,8 @@ Assume `default-directory' is inside a got worktree."
(string-trim (buffer-string) nil "\n"))))
(defun vc-got--call (&rest args)
- "Call `vc-got-cmd' in the `default-directory' with ARGS and put the output
in the current buffer."
- (apply #'process-file vc-got-cmd nil (current-buffer) nil args))
+ "Call `vc-got-program' in the `default-directory' with ARGS and put the
output in the current buffer."
+ (apply #'process-file vc-got-program nil (current-buffer) nil args))
(defun vc-got--add (files)
"Add FILES to got, passing `vc-register-switches' to the command invocation."
@@ -456,7 +457,7 @@ ROOT is the worktree root."
(defun vc-got-pull (prompt)
"Execute got pull, prompting the user for the full command if PROMPT is not
nil."
- (vc-got--push-pull vc-got-cmd "fetch" prompt (vc-got-root
default-directory)))
+ (vc-got--push-pull vc-got-program "fetch" prompt (vc-got-root
default-directory)))
(defun vc-got-push (prompt)
"Run git push (not got!) in the repository dir.
- [elpa] externals/vc-got 6eda2f1 035/145: vc-got-log-incoming, (continued)
- [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, 2021/09/09
- [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 <=
- [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
- [elpa] externals/vc-got cf4e3eb 070/145: fix vc-got-dir-status-files, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 6f42ede 081/145: don't create temp buffers for nothing, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got b2721e8 080/145: set status to 'staged if a file has all its modification staged, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got dec54a7 088/145: improve vc-got-{push, pull}, ELPA Syncer, 2021/09/09