From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PJ Weisberg Newsgroups: gmane.emacs.help Subject: Having vc mode recognize file under git version control Date: Thu, 11 Aug 2011 09:53:42 -0700 Message-ID: References: <87vcu5ky2t.fsf@gmail.com> <181uws4gdr.fsf@news.eternal-september.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf304344daae2e8c04aa3da330 X-Trace: dough.gmane.org 1313081641 13803 80.91.229.12 (11 Aug 2011 16:54:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 11 Aug 2011 16:54:01 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Laird Nelson Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 11 18:53:57 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QrYW5-00079F-1B for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Aug 2011 18:53:57 +0200 Original-Received: from localhost ([::1]:45592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrYW4-0001Y0-NJ for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Aug 2011 12:53:56 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrYVx-0001WA-3N for help-gnu-emacs@gnu.org; Thu, 11 Aug 2011 12:53:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrYVt-0002ce-0z for help-gnu-emacs@gnu.org; Thu, 11 Aug 2011 12:53:49 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:39349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrYVs-0002cZ-Sl for help-gnu-emacs@gnu.org; Thu, 11 Aug 2011 12:53:44 -0400 Original-Received: by fxg9 with SMTP id 9so2179265fxg.0 for ; Thu, 11 Aug 2011 09:53:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cKK2CGVk4a3cf4+ER622+VxS+umDlt6Y1tSzJbPPrzA=; b=QnmsWTtJcFCEKqvnQfaap2QNCliQtN0ZcpBHfJaykRR/IdCxrwg/FBzST4h2WUQGtj +uLl7PjGvoGtTXB4E/ehojr/NQBEdpVIZrPwWBfE5jjp7bXnFfeX/D/y1lvtTXvqHZ2o lprqVGxkZcu5eRKEMswmQFPUsG/1m/R5WgSdw= Original-Received: by 10.223.102.68 with SMTP id f4mr853015fao.117.1313081622670; Thu, 11 Aug 2011 09:53:42 -0700 (PDT) Original-Received: by 10.223.83.194 with HTTP; Thu, 11 Aug 2011 09:53:42 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81931 Archived-At: --20cf304344daae2e8c04aa3da330 Content-Type: text/plain; charset=ISO-8859-1 On Thursday, August 11, 2011, Laird Nelson wrote: > On Thu, Aug 11, 2011 at 2:22 AM, Richard Riley wrote: >> >> The reason is that if its not on the path it cant use the git >> executable.. > > No, I got that part--but surely it could tell me that it recognized that the file was under Git version control, even if it knew that it couldn't actually *act* on the file? Minor point; I got it working. Debatable. There's nothing in the .git directory that makes it clear which files are tracked or untracked without running git. And if you actually didn't have Git on your system, then you probably wouldn't be using it to track files. -- -PJ --20cf304344daae2e8c04aa3da330 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Thursday, August 11, 2011, Laird Nelson <ljnelson@gmail.com> wrote:
> On Thu, Aug 11, 2011 at= 2:22 AM, Richard Riley <riley= rg@googlemail.com> wrote:
>>
>> The reason is that if its not on the path it cant use = the git
>> executable..
>
> No, I got that part--but s= urely it could tell me that it recognized that the file was under Git versi= on control, even if it knew that it couldn't actually *act* on the file= ?=A0 Minor point; I got it working.

Debatable. =A0There's nothing in the .git directory that makes it c= lear which files are tracked or untracked without running git. =A0And if yo= u actually didn't have Git on your system, then you probably wouldn'= ;t be using it to track files.

--

-PJ
--20cf304344daae2e8c04aa3da330--