From: Xavier Maillard <zedek@gnu.org>
To: git@vger.kernel.org
Subject: [PATCH] Automatically add GIT as a VC backend
Date: Fri, 02 Mar 2007 00:52:58 +0100 [thread overview]
Message-ID: <28587.1172793178@localhost> (raw)
Hi,
A small patch with following changes:
Automatically add GIT as a VC backend
Remove byte-compiler warning with an eval of vc
---
contrib/emacs/vc-git.el | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/contrib/emacs/vc-git.el b/contrib/emacs/vc-git.el
index e456ab9..a2d3932 100644
--- a/contrib/emacs/vc-git.el
+++ b/contrib/emacs/vc-git.el
@@ -22,18 +22,19 @@
;; This file contains a VC backend for the git version control
;; system.
;;
-;; To install: put this file on the load-path and add GIT to the list
-;; of supported backends in `vc-handled-backends'; the following line,
-;; placed in your ~/.emacs, will accomplish this:
-;;
-;; (add-to-list 'vc-handled-backends 'GIT)
+;; To install: put this file on the load-path.
;;
;; TODO
;; - changelog generation
;; - working with revisions other than HEAD
;;
-(eval-when-compile (require 'cl))
+(eval-when-compile
+ (require 'cl)
+ (require 'vc))
+
+;; Add it automatically
+(add-to-list 'vc-handled-backends 'GIT)
(defvar git-commits-coding-system 'utf-8
"Default coding system for git commits.")
--
Xavier
next reply other threads:[~2007-03-01 23:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-01 23:52 Xavier Maillard [this message]
2007-03-02 11:12 ` [PATCH] Automatically add GIT as a VC backend Alexandre Julliard
2007-03-03 9:31 ` Xavier Maillard
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=28587.1172793178@localhost \
--to=zedek@gnu.org \
--cc=git@vger.kernel.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.
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 NNTP newsgroup(s).