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

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

[elpa] externals/vc-got 9114bbc 112/145: use wrapper function instead of


From: ELPA Syncer
Subject: [elpa] externals/vc-got 9114bbc 112/145: use wrapper function instead of replicating it
Date: Thu, 9 Sep 2021 15:58:44 -0400 (EDT)

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

    use wrapper function instead of replicating it
---
 vc-got.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/vc-got.el b/vc-got.el
index 2f897c1..182a0f8 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -569,9 +569,7 @@ FILES is nil, consider all the files in DIR."
 
 (defun vc-got-unregister (file)
   "Unregister FILE."
-  (with-temp-buffer
-    (unless (zerop (vc-got--call "remove" "-fk" "--" file))
-      (error "[vc-got] can't unregister %s: %s" file (buffer-string)))))
+  (vc-got--remove file t t))
 
 ;; XXX: generally speaking, files cannot be nil.  But we have to
 ;; handle that case too, because vc-got-stage-commit will call



reply via email to

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