From: Tom Tromey <tom@tromey.com>
To: Tom Tromey <tom@tromey.com>
Cc: 28427@debbugs.gnu.org
Subject: bug#28427: 26.0.50; revert-buffer and git vc-outgoing
Date: Mon, 11 Sep 2017 21:36:10 -0600 [thread overview]
Message-ID: <87mv60fv11.fsf@bapiya> (raw)
In-Reply-To: <87r2vcg9gy.fsf@bapiya> (Tom Tromey's message of "Mon, 11 Sep 2017 16:24:13 -0600")
>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:
Tom> I have a local git branch. I open vc-dir and use "O" to get the
Tom> outgoing revisions.
Tom> In *vc-outgoing*, if I type 'g' (revert-buffer), it doesn't first erase
Tom> the buffer, so all the outgoing revisions are repeated.
This patch seems to do it.
I changed vc-git-log-incoming as well since it looks like it should have
the same problem.
Tom
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index cc3e295..47b661a 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -1029,6 +1030,7 @@ vc-git-print-log
'("--")))))))
(defun vc-git-log-outgoing (buffer remote-location)
+ (vc-setup-buffer buffer)
(interactive)
(vc-git-command
buffer 'async nil
@@ -1043,6 +1045,7 @@ vc-git-log-outgoing
(defun vc-git-log-incoming (buffer remote-location)
(interactive)
+ (vc-setup-buffer buffer)
(vc-git-command nil 0 nil "fetch")
(vc-git-command
buffer 'async nil
next prev parent reply other threads:[~2017-09-12 3:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-11 22:24 bug#28427: 26.0.50; revert-buffer and git vc-outgoing Tom Tromey
2017-09-12 3:36 ` Tom Tromey [this message]
2017-09-12 5:15 ` npostavs
2017-09-12 13:50 ` Tom Tromey
2017-09-19 2:17 ` bug#28427: done Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mv60fv11.fsf@bapiya \
--to=tom@tromey.com \
--cc=28427@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).