* problem with vc-annotate using git 1.5.6
@ 2010-06-13 0:26 Bob Rogers
2010-06-21 23:44 ` Dan Nicolaescu
0 siblings, 1 reply; 2+ messages in thread
From: Bob Rogers @ 2010-06-13 0:26 UTC (permalink / raw)
To: emacs-devel
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,
-- Bob Rogers
http://www.rgrjr.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: problem with vc-annotate using git 1.5.6
2010-06-13 0:26 problem with vc-annotate using git 1.5.6 Bob Rogers
@ 2010-06-21 23:44 ` Dan Nicolaescu
0 siblings, 0 replies; 2+ messages in thread
From: Dan Nicolaescu @ 2010-06-21 23:44 UTC (permalink / raw)
To: Bob Rogers; +Cc: emacs-devel
Bob Rogers <rogers-emacs@rgrjr.dyndns.org> 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)))
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-21 23:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-13 0:26 problem with vc-annotate using git 1.5.6 Bob Rogers
2010-06-21 23:44 ` Dan Nicolaescu
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.