branch: externals/vc-jj
commit b8decaa4bd2b21386586b1aee8a99f8a61596d7d
Author: Kristoffer Balintona <[email protected]>
Commit: Kristoffer Balintona <[email protected]>
Do not create *vc-diff* buffer manually
Creation of the *vc-diff* buffer is handled by `vc-do-command`, which
is called internally by `vc-jj--command-dispatched`.
This change makes `vc-jj-diff` match `vc-git-diff` in this regard.
---
vc-jj.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vc-jj.el b/vc-jj.el
index 9c7c60c190..98b9110a8a 100644
--- a/vc-jj.el
+++ b/vc-jj.el
@@ -1048,7 +1048,7 @@ diff into. Otherwise, when nil, insert the diff into the
*vc-diff*
buffer. If _ASYNC is non-nil, run asynchronously. This is currently
unsupported."
;; TODO: handle async
- (setq buffer (get-buffer-create (or buffer "*vc-diff*"))
+ (setq buffer (or buffer "*vc-diff*")
files (mapcar #'vc-jj--filename-to-fileset files))
(cond
((not (or rev1 rev2))