vc-finish-logentry: Skip displaying async command buffer sometimes

* lisp/vc/vc-dispatcher.el (vc-finish-logentry): Don't display
the async command buffer if vc-display-failed-async-commands is
non-nil.
This commit is contained in:
Sean Whitton 2026-05-05 11:00:52 +01:00
parent 5789621632
commit 8f9607d532

View file

@ -1021,7 +1021,13 @@ the buffer contents as a comment."
(t
(quit-windows-on logbuf nil 0)))
(when (eq (car-safe log-operation-ret) 'async)
(when (and (eq (car-safe log-operation-ret) 'async)
;; For an async commit, if we will display the buffer
;; if the command fails, don't display it sooner.
;; The output from successful commit commands isn't
;; interesting and VC-Dir will show the files as being
;; committed while it's in progress.
(not vc-display-failed-async-commands))
(vc--display-async-command-buffer (process-buffer
(cadr log-operation-ret))))