emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 97fc87a: * lisp/vc/vc-hg.el, lisp/vc/vc-git.el: Flu


From: Stefan Monnier
Subject: [Emacs-diffs] master 97fc87a: * lisp/vc/vc-hg.el, lisp/vc/vc-git.el: Flush the 'vc-functions' cache.
Date: Thu, 18 Jan 2018 20:11:44 -0500 (EST)

branch: master
commit 97fc87a3924c8b51e90b7d359cc585cbfa972e58
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>

    * lisp/vc/vc-hg.el, lisp/vc/vc-git.el: Flush the 'vc-functions' cache.
---
 lisp/vc/vc-git.el | 4 ++++
 lisp/vc/vc-hg.el  | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index 626cf61..2d6ca13 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -183,6 +183,10 @@ Should be consistent with the Git config value 
i18n.logOutputEncoding."
 ;; History of Git commands.
 (defvar vc-git-history nil)
 
+;; Clear up the cache to force vc-call to check again and discover
+;; new functions when we reload this file.
+(put 'Git 'vc-functions nil)
+
 ;;; BACKEND PROPERTIES
 
 (defun vc-git-revision-granularity () 'repository)
diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el
index 08b1be8..ad817fd 100644
--- a/lisp/vc/vc-hg.el
+++ b/lisp/vc/vc-hg.el
@@ -175,6 +175,10 @@ highlighting the Log View buffer."
   :version "24.5")
 
 
+;; Clear up the cache to force vc-call to check again and discover
+;; new functions when we reload this file.
+(put 'Hg 'vc-functions nil)
+
 ;;; Properties of the backend
 
 (defvar vc-hg-history nil)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]