]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/vc/vc-hg.el (vc-hg-command): Improve docstring.
authorSean Whitton <spwhitton@spwhitton.name>
Thu, 3 Jul 2025 19:10:42 +0000 (20:10 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 23 Jul 2025 20:13:38 +0000 (22:13 +0200)
(cherry picked from commit f1fe815b43c87b147e3e6cc5cd600cd66cc65b7f)

lisp/vc/vc-hg.el

index d7f25fe6a391c46638b2ae7255928996c740f175..e5a7c10ed964ad2dbc3c4ebd05d3982bcfe53510 100644 (file)
@@ -1641,8 +1641,10 @@ This runs the command \"hg merge\"."
 
 (defun vc-hg-command (buffer okstatus file-or-list &rest flags)
   "A wrapper around `vc-do-command' for use in vc-hg.el.
-This function differs from `vc-do-command' in that it invokes
-`vc-hg-program', and passes `vc-hg-global-switches' to it before FLAGS."
+This function differs from `vc-do-command' in that
+- BUFFER may be nil
+- it invokes `vc-hg-program' and passes `vc-hg-global-switches' to it
+  before FLAGS."
   (vc-hg--command-1 #'vc-do-command
                     (list (or buffer "*vc*")
                           okstatus vc-hg-program file-or-list)