(interactive)
(save-excursion
(goto-char (pos-bol))
- (when-let* ((re (rx bol "(" (group (+ (not (in " "))))))
+ (when-let* ((re (rx bol "(" (group (+ (not (in " )"))))))
(string
(and (or (looking-at re)
(re-search-backward re nil t))
(zerop (apply #'vc-git--call '(t nil) command args)))
(defun vc-git--out-str (command &rest args)
- "Run `git COMMAND ARGS...' and return standard output.
+ "Run `git COMMAND ARGS...' and return standard output as a string.
The exit status is ignored."
(with-output-to-string
(with-current-buffer standard-output