* [PATCH] Automatically add GIT as a VC backend
@ 2007-03-01 23:52 Xavier Maillard
2007-03-02 11:12 ` Alexandre Julliard
0 siblings, 1 reply; 3+ messages in thread
From: Xavier Maillard @ 2007-03-01 23:52 UTC (permalink / raw)
To: git
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Automatically add GIT as a VC backend
2007-03-01 23:52 [PATCH] Automatically add GIT as a VC backend Xavier Maillard
@ 2007-03-02 11:12 ` Alexandre Julliard
2007-03-03 9:31 ` Xavier Maillard
0 siblings, 1 reply; 3+ messages in thread
From: Alexandre Julliard @ 2007-03-02 11:12 UTC (permalink / raw)
To: Xavier Maillard; +Cc: git
Xavier Maillard <zedek@gnu.org> writes:
> @@ -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.
Simply putting it on the load-path is not enough to make it work,
you'd still have to load it explicitly; it's not clear to me that this
is better than adding it to vc-handled-backends. We can of course
support both approaches, so the rest of your patch is fine, I just
don't think the installation instructions should be changed.
--
Alexandre Julliard
julliard@winehq.org
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Automatically add GIT as a VC backend
2007-03-02 11:12 ` Alexandre Julliard
@ 2007-03-03 9:31 ` Xavier Maillard
0 siblings, 0 replies; 3+ messages in thread
From: Xavier Maillard @ 2007-03-03 9:31 UTC (permalink / raw)
To: Alexandre Julliard; +Cc: Xavier Maillard, git
Alexandre Julliard <julliard@winehq.org> wrote:
> Xavier Maillard <zedek@gnu.org> writes:
>
> > @@ -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.
>
> Simply putting it on the load-path is not enough to make it work,
> you'd still have to load it explicitly; it's not clear to me that this
> is better than adding it to vc-handled-backends.
You are right.
Xavier
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-03 9:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-01 23:52 [PATCH] Automatically add GIT as a VC backend Xavier Maillard
2007-03-02 11:12 ` Alexandre Julliard
2007-03-03 9:31 ` Xavier Maillard
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).