commit 9114bbc37db94107eb17c9ed710bac479df04c97 from: Omar Polo date: Wed Aug 11 20:06:14 2021 UTC use wrapper function instead of replicating it commit - 241a3b1222c05b9c84b192f6afa4ee6eb71f4a7f commit + 9114bbc37db94107eb17c9ed710bac479df04c97 blob - 2f897c15f74a636ac046cad5214bdc8344b8d0fe blob + 182a0f8f3cd0a7a84f0074bfa61073955887a4d5 --- vc-got.el +++ 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