Skip to contentSkip to conversation

Two minor fixes for vc-git

PATCH New Karl Hasselström 1 participant 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

cover Two minor fixes for vc-git

I'm a total newbie when it comes to elisp, so you may want to take these with a pinch of salt. But vc-git was quite broken for me without this fix, so I guess _something_ has to be done about it ...

Signature · 2 lines
Karl Hasselström, [email protected]
      www.treskal.com/kalle
#1 lore raw

PATCH 1/2 ignore-errors requires cl

From: Karl Hasselström <[email protected]>

vc-git complains that it can't find the definition of ignore-errors unless I (require 'cl). So I guess the correct place to do that is in the file itself.

---

 contrib/emacs/vc-git.el |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
contrib/emacs/vc-git.el +2 -0
index 4189c4c..1ec228f 100644
@@ -30,6 +30,8 @@
 ;;  - working with revisions other than HEAD
 ;;
 
+(require 'cl)
+
 (defvar git-commits-coding-system 'utf-8
   "Default coding system for git commits.")
 
#2 lore raw

PATCH 2/2 Better installation instructions

In reply to Karl Hasselström

From: Karl Hasselström <[email protected]>

Provide some more detailed installation instructions, for the elisp-challenged among us.

---

 contrib/emacs/vc-git.el |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
contrib/emacs/vc-git.el +4 -1
index 1ec228f..535ce97 100644
@@ -23,7 +23,10 @@
 ;; system.
 ;;
 ;; To install: put this file on the load-path and add GIT to the list
-;; of supported backends in `vc-handled-backends'.
+;; of supported backends in `vc-handled-backends'; the following line,
+;; placed in your ~/.emacs, will accomplish this:
+;;
+;;     (add-to-list 'vc-handled-backends 'GIT)
 ;;
 ;; TODO
 ;;  - changelog generation