From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: problem with vc-annotate using git 1.5.6 Date: Mon, 21 Jun 2010 19:44:31 -0400 Message-ID: References: <19476.9652.451447.810881@rgr.rgrjr.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1277163882 17492 80.91.229.12 (21 Jun 2010 23:44:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Jun 2010 23:44:42 +0000 (UTC) Cc: emacs-devel@gnu.org To: Bob Rogers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 22 01:44:41 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OQqfQ-00051r-8o for ged-emacs-devel@m.gmane.org; Tue, 22 Jun 2010 01:44:40 +0200 Original-Received: from localhost ([127.0.0.1]:57437 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQqfP-0000KK-F5 for ged-emacs-devel@m.gmane.org; Mon, 21 Jun 2010 19:44:39 -0400 Original-Received: from [199.232.76.173] (port=34058 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQqfK-0000KE-BH for emacs-devel@gnu.org; Mon, 21 Jun 2010 19:44:34 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1OQqfI-0003eh-U6 for emacs-devel@gnu.org; Mon, 21 Jun 2010 19:44:33 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:48759) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1OQqfI-0003ed-NK for emacs-devel@gnu.org; Mon, 21 Jun 2010 19:44:32 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OQqfH-0007wG-KJ; Mon, 21 Jun 2010 19:44:31 -0400 In-Reply-To: <19476.9652.451447.810881@rgr.rgrjr.com> (Bob Rogers's message of "Sat\, 12 Jun 2010 20\:26\:28 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:126317 Archived-At: Bob Rogers 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)))