[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with vc-annotate using git 1.5.6
From: |
Dan Nicolaescu |
Subject: |
Re: problem with vc-annotate using git 1.5.6 |
Date: |
Mon, 21 Jun 2010 19:44:31 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Bob Rogers <address@hidden> writes:
> vc-annotate of (e.g.) sql.el does not work for me under git because
> emacs runs the equivalent of:
>
> git blame --date=iso -C -C master sql.el
>
> and gets this error:
>
> fatal: cannot stat path lisp/progmodes/master: No such file or directory
>
> This seems to be because "master" is passed as the "rev" arg to
> vc-git-annotate-command, but git interprets this as a file rather than a
> revision. Is this perhaps a compatibility problem with the version of
> git I am using? TIA,
Does this help?
(defun vc-git-annotate-command (file buf &optional rev)
(let ((name (file-relative-name file)))
(vc-git-command buf 'async nil "blame" "--date=iso" "-C" "-C" rev "--"
name)))