Remove assumption about what nil means as a first arument to vc-do-command.

This commit is contained in:
Eric S. Raymond 2008-05-10 13:27:16 +00:00
parent b3fccc2715
commit 2888a97eb5
12 changed files with 65 additions and 50 deletions

View file

@ -695,7 +695,7 @@ This command shares argument histories with \\[rgrep] and \\[grep]."
(defun vc-git-command (buffer okstatus file-or-list &rest flags)
"A wrapper around `vc-do-command' for use in vc-git.el.
The difference to vc-do-command is that this function always invokes `git'."
(apply 'vc-do-command buffer okstatus "git" file-or-list flags))
(apply 'vc-do-command (or buffer "*vc*") okstatus "git" file-or-list flags))
(defun vc-git--empty-db-p ()
"Check if the git db is empty (no commit done yet)."