commit - 3f25d9ffc6f214200f4e66c4d362bad00c109ca6
commit + fab791a23c58d981375f0c0aad775fdf75b00a7c
blob - a248730bf65488fd35e54015185882bde0454b0e
blob + 08d53c32a9e7ac8ce871061d29a49bba935c3b78
--- vc-got.el
+++ vc-got.el
(defun vc-got--call (&rest 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))
+ (apply #'process-file vc-got-program nil (current-buffer) nil
+ (cl-remove-if #'null (flatten-list args))))
(defun vc-got--add (files)
"Add FILES to got, passing `vc-register-switches' to the command invocation."
(let (process-file-side-effects)
(vc-got-with-worktree (or path default-directory)
(zerop
- (apply #'vc-got--call
- (cl-remove-if #'null
- (flatten-list
- (list "log"
- (when limit (list "-l" (format "%s" limit)))
- (when start-commit (list "-c" start-commit))
- (when stop-commit (list "-x" stop-commit))
- (when search-pattern (list "-s" search-pattern))
- (when reverse '("-R"))
- path))))))))
+ (vc-got--call "log"
+ (when limit (list "-l" (format "%s" limit)))
+ (when start-commit (list "-c" start-commit))
+ (when stop-commit (list "-x" stop-commit))
+ (when search-pattern (list "-s" search-pattern))
+ (when reverse '("-R"))
+ path)))))
(defun vc-got--status (dir-or-file &rest files)
"Return the output of ``got status''.