summaryrefslogtreecommitdiff
path: root/lisp/vc/vc-git.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2019-05-19 23:11:27 +0300
committerJuri Linkov <juri@linkov.net>2019-05-19 23:11:27 +0300
commit82db17d0d1231c4aa26e837f37428c44a67663ea (patch)
tree086396528dfd2f83657992ddf1bb88e3789f0909 /lisp/vc/vc-git.el
parent1b2b136a17d222892af9c25559e1b4c41de7831c (diff)
downloademacs-82db17d0d1231c4aa26e837f37428c44a67663ea.tar.gz
Publicize behavior of log-view-diff at beginning/end of active region
* lisp/vc/log-view.el (log-view-diff, log-view-diff-changeset): * doc/emacs/maintaining.texi (VC Change Log): Document behavior of log-view-diff at the beginning and the end of the log buffer when the region is active. (Bug#35624) * lisp/vc/vc-git.el (vc-git-print-log): Insert newline at the beginning to enable the feature of diffing with the working revision.
Diffstat (limited to 'lisp/vc/vc-git.el')
-rw-r--r--lisp/vc/vc-git.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index 61c13026cc5..b6feb3b8d1e 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -1017,8 +1017,8 @@ If LIMIT is a revision string, use it as an end-revision."
;; If the buffer exists from a previous invocation it might be
;; read-only.
(let ((inhibit-read-only t))
- (with-current-buffer
- buffer
+ (with-current-buffer buffer
+ (insert "\n")
(apply 'vc-git-command buffer
'async files
(append