branch: externals/vc-got
commit 9114bbc37db94107eb17c9ed710bac479df04c97
Author: Omar Polo <[email protected]>
Commit: Omar Polo <[email protected]>

    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