From: Tom Tromey <tom@tromey.com>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: Tom Tromey <tom@tromey.com>, 28121@debbugs.gnu.org
Subject: bug#28121: 26.0.50; vc-dir doesn't update when conflict resolved
Date: Mon, 11 Sep 2017 15:11:32 -0600 [thread overview]
Message-ID: <87wp552b5n.fsf@pokyo> (raw)
In-Reply-To: <4332a009-7d15-803d-952e-4505ce2cd6c6@yandex.ru> (Dmitry Gutov's message of "Sun, 20 Aug 2017 23:59:43 +0300")
>>>>> "Dmitry" == Dmitry Gutov <dgutov@yandex.ru> writes:
Dmitry> Thanks for the report. I don't have time now to repro, but please try
Dmitry> the following patch. Maybe add a third t to the arguments list if it
Dmitry> doesn't help.
Dmitry> diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
Dmitry> index cc3e295..6123b32 100644
Dmitry> --- a/lisp/vc/vc-git.el
Dmitry> +++ b/lisp/vc/vc-git.el
Dmitry> @@ -964,6 +964,7 @@ vc-git-resolve-when-done
Dmitry> (vc-git-root
Dmitry> buffer-file-name)))
Dmitry> (vc-git-conflicted-files (vc-git-root buffer-file-name)))
Dmitry> (vc-git-command nil 0 nil "reset"))
Dmitry> + (vc-resynch-buffer buffer-file-name t t)
Dmitry> ;; Remove the hook so that it is not called multiple times.
Dmitry> (remove-hook 'after-save-hook 'vc-git-resolve-when-done t))))
I finally got around to trying this last night, and it worked for me.
Could you check it in?
thanks,
Tom
next prev parent reply other threads:[~2017-09-11 21:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-17 12:36 bug#28121: 26.0.50; vc-dir doesn't update when conflict resolved Tom Tromey
2017-08-20 20:59 ` Dmitry Gutov
2017-09-11 21:11 ` Tom Tromey [this message]
2017-09-12 23:33 ` Dmitry Gutov
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wp552b5n.fsf@pokyo \
--to=tom@tromey.com \
--cc=28121@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.