refactor: Simplify ‘p4-lowlevel-command-into-buffer’

This commit is contained in:
Tom Willemse 2023-04-03 22:53:02 -07:00
parent 2fb2806708
commit dd6e57b1e5

View file

@ -352,9 +352,8 @@ that buffer. Returns the buffer."
(defun p4-lowlevel-command-messages ()
"Return t if vc-command-messages bound and true.
Fall back to the value of p4-lowlevel-command-messages."
(if (and (boundp 'vc-command-messages) vc-command-messages)
t
p4-lowlevel-command-messages))
(or (bound-and-true-p vc-command-messages)
p4-lowlevel-command-messages))
(defun p4-lowlevel-canonicalize-revision (rev)
"Turn REV into a form which can be concatenated to file names in P4 commands."