From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#5078: 23.1.50; vc broken Date: Mon, 30 Nov 2009 18:00:05 -0800 (PST) Message-ID: <200912010200.nB1205lE018903@godzilla.ics.uci.edu> References: <200911301646.nAUGkHKB014645@godzilla.ics.uci.edu> <200911301959.nAUJxuNO016161@godzilla.ics.uci.edu> <200912010007.nB1071f9018012@godzilla.ics.uci.edu> Reply-To: Dan Nicolaescu , 5078@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1259633310 6920 80.91.229.12 (1 Dec 2009 02:08:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Dec 2009 02:08:30 +0000 (UTC) Cc: 5078@emacsbugs.donarmstrong.com To: Leo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 01 03:08:23 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NFIAA-0007E4-Ug for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Dec 2009 03:08:23 +0100 Original-Received: from localhost ([127.0.0.1]:40566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFIAA-0006vC-Iv for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Nov 2009 21:08:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFI9N-0006Uv-JK for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2009 21:07:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFI9I-0006Sk-EG for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2009 21:07:32 -0500 Original-Received: from [199.232.76.173] (port=49194 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFI9H-0006Sc-Fm for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2009 21:07:27 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40990) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NFI9G-0004u6-LV for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2009 21:07:27 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB127OMe032189; Mon, 30 Nov 2009 18:07:24 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nB12556G031617; Mon, 30 Nov 2009 18:05:05 -0800 Resent-Date: Mon, 30 Nov 2009 18:05:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 01 Dec 2009 02:05:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 5078 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5078-submit@emacsbugs.donarmstrong.com id=B5078.125963281730960 (code B ref 5078); Tue, 01 Dec 2009 02:05:04 +0000 Original-Received: (at 5078) by emacsbugs.donarmstrong.com; 1 Dec 2009 02:00:17 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from paul-mcgann-v0.ics.uci.edu (paul-mcgann-v0.ics.uci.edu [128.195.1.147]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB120GLY030877 for <5078@emacsbugs.donarmstrong.com>; Mon, 30 Nov 2009 18:00:17 -0800 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by paul-mcgann-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id nB1205oM005301 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 30 Nov 2009 18:00:06 -0800 Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id nB1205lE018903; Mon, 30 Nov 2009 18:00:05 -0800 (PST) In-Reply-To: (Leo's message of "Tue, 01 Dec 2009 01:18:14 +0000") Original-Lines: 28 X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: nB1205oM005301 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 30 Nov 2009 21:07:32 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:33101 Archived-At: Leo writes: > On 2009-12-01 00:07 +0000, Dan Nicolaescu wrote: > > Please try to debug that function and figure out why it returns 'up-to-date. > > > I set vc-git-state with edebug and then made some changes to the file. > The following are some return values inside vc-git-state. Does it give a > clue? > > 1. (vc-git--call nil "add" "--refresh" "--" (file-relative-name file)) > > returns result: 128 (#o200, #x80, ?\200) > > 2. (vc-git--run-command-string file "diff-index" "-z" "HEAD" "--") > > returns empty string "" It seems that git thinks there's no change, if you change that line to: (vc-git--run-command-string file "diff-index" "-p" "-z" "HEAD" "--") does it return the diff you've shown in a previous message? > If I clone the repo, the problem goes away. Maybe something is corrupted in your tree, maybe comparing the 2 .git directories could give some clues.