From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Claus Newsgroups: gmane.emacs.devel Subject: Re: vc-git bug with top-level repositories Date: Mon, 18 Aug 2008 22:10:14 +0200 Message-ID: References: <200808181433.m7IEX8U3028640@sallyv1.ics.uci.edu> <200808181639.m7IGd1kb005968@sallyv1.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219090228 7448 80.91.229.12 (18 Aug 2008 20:10:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Aug 2008 20:10:28 +0000 (UTC) Cc: Dan Nicolaescu To: "Emacs Devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 18 22:11:21 2008 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.50) id 1KVB4S-0002ab-PX for ged-emacs-devel@m.gmane.org; Mon, 18 Aug 2008 22:11:21 +0200 Original-Received: from localhost ([127.0.0.1]:50433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVB3V-0003Eq-JU for ged-emacs-devel@m.gmane.org; Mon, 18 Aug 2008 16:10:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVB3R-0003EO-NP for emacs-devel@gnu.org; Mon, 18 Aug 2008 16:10:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVB3Q-0003Dz-68 for emacs-devel@gnu.org; Mon, 18 Aug 2008 16:10:17 -0400 Original-Received: from [199.232.76.173] (port=41398 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVB3Q-0003Dw-2d for emacs-devel@gnu.org; Mon, 18 Aug 2008 16:10:16 -0400 Original-Received: from wf-out-1314.google.com ([209.85.200.173]:39873) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KVB3P-0001FU-HZ for emacs-devel@gnu.org; Mon, 18 Aug 2008 16:10:15 -0400 Original-Received: by wf-out-1314.google.com with SMTP id 28so2259551wfc.24 for ; Mon, 18 Aug 2008 13:10:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=UgXfF04oDx6xAv13/EIii7Fcp1GRgeELy2eAVdgJc70=; b=UhhN3ZJ5s7wGk/wrvcBBgvvDKEa+BsfmA5l8X01sl96tmy5oM5tz9pO4NFfea14nsF RbONRftDJezIjh2BBAc26OmCAz8fuHxCDldpbcyp63Mu9PtLAKFxGnJD5yBSWxRTR64Z scjKEZeiqlu4mSrfLiyIughDBzzH0NnvZ8/TI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=X7D7PLWn8rgad4+o5mslNr/ScogAr+VltriC6PK97RMaYhftjRtq1LrcUS1/1HptVB pS+YHFuMSljXWHrlPkmGhiqgxpuDn4LK37/7IBgDLL7YAqyg0dsDQrCGZfnS4V+LMOGF 5Q3I0bhQPAEwsuNzgy7yI+A3Cr25DQIIxY4ps= Original-Received: by 10.142.116.13 with SMTP id o13mr2202243wfc.210.1219090214767; Mon, 18 Aug 2008 13:10:14 -0700 (PDT) Original-Received: by 10.142.177.16 with HTTP; Mon, 18 Aug 2008 13:10:14 -0700 (PDT) In-Reply-To: <200808181639.m7IGd1kb005968@sallyv1.ics.uci.edu> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:102607 Archived-At: > Try to figure out why (vc-git-registered "c:/work/foo/bar/somefile.xml") > does not return t. Fair enough :) Well, it seems like vc-git-registered returns t for files in the top-level git-directory (the directory, where .git resides). It does however NOT return t for files in subdirectories of where the .git dir resides. E.g. in a git-repository in c:/work/foo/ a file c:/work/foo/myfile.txt is recognized, but c:/work/foo/bar/myotherfile.txt is not. ".git" resides in c:/work/foo ony, naturally. Any recent changes to vc-git-registered that might have caused this? HTH, Claus On Mon, Aug 18, 2008 at 6:39 PM, Dan Nicolaescu wrote: > Claus writes: > > > I see this behaviour as well (under Windows): > > > > c:/work/foo/bar/somefile.xml is not recognized to be under GIT vc (but it is). > > > > Whereas $HOME/.emacs is correctly recognized as being under GIT vc. > > > > This used to work in my last build ~ the end of July, but doesn't work > > now using: > > > > GNU Emacs 23.0.60.1 (i386-mingw-nt6.0.6001) of 2008-08-17 > > > > > > If I can be of any more help in debugging this, let me know. > > Try to figure out why (vc-git-registered "c:/work/foo/bar/somefile.xml") > does not return t. > > > > Claus > > > > > > On Mon, Aug 18, 2008 at 4:33 PM, Dan Nicolaescu wrote: > > > "Alfred M. Szmidt" writes: > > > > > > > Hi, > > > > > > > > if you have git repository in e.g. /foo/.git then vc-mode stops > > > > working. vc-mode also stops working if you have /.git. > > > > > > > > By stops working I mean that vc-mode does not detect that a file is > > > > under VC, so you cannot do vc-print-log, vc-next-action, etc. > > > > > > A git repository in /foo/.git works fine for me with emacs from CVS head > > > and EMACS_22_BRANCH. > > > > > > What version are you using? Can you try with emacs -Q? >