emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/vc-got 9e805da 004/145: defalias vc-got-responsible-p t


From: ELPA Syncer
Subject: [elpa] externals/vc-got 9e805da 004/145: defalias vc-got-responsible-p to vc-got-root
Date: Thu, 9 Sep 2021 15:58:22 -0400 (EDT)

branch: externals/vc-got
commit 9e805da80d3097d153cb3b73bf4f5f4341a3aad9
Author: Omar Polo <op@omarpolo.com>
Commit: Omar Polo <op@omarpolo.com>

    defalias vc-got-responsible-p to vc-got-root
    
    they had the same output, only two slightly different implementation,
    and vc-got-root should be faster.
---
 vc-got.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/vc-got.el b/vc-got.el
index 553917a..2d2fcfe 100644
--- a/vc-got.el
+++ b/vc-got.el
@@ -285,8 +285,7 @@ Return \"0\" for a file added but not yet committed."
   "Register FILES, passing `vc-register-switches' to the backend command."
   (vc-got--add files))
 
-(defun vc-got-responsible-p (file)
-  (vc-find-root file ".got"))
+(defalias 'vc-got-responsible-p #'vc-got-root)
 
 (defun vc-got-checkin (files comment &optional _rev)
   "Commit FILES with COMMENT as commit message."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]