emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#11344: closed (24.0.95; vc-git-state bug)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#11344: closed (24.0.95; vc-git-state bug)
Date: Thu, 26 Apr 2012 09:34:01 +0000

Your message dated Thu, 26 Apr 2012 11:32:03 +0200
with message-id <address@hidden>
and subject line Re: bug#11344: 24.0.95; vc-git-state bug
has caused the debbugs.gnu.org bug report #11344,
regarding 24.0.95; vc-git-state bug
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
11344: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11344
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.0.95; vc-git-state bug Date: Thu, 26 Apr 2012 13:26:55 +0800
1. Open a file in a git repo
2. Insert any char and then delete it
3. Save

You will see emacs show in the mode-line "Git:<branch>" i.e. file is
modified. Because in this case, git diff-index -p --raw -z HEAD --
<file> outputs:

 :100644 100644 c617ed851b3c4d332ab960b0f936c6c4fafce1b0 
0000000000000000000000000000000000000000 MTODOdiff --git a/TODO b/TODO

The manual page of git-diff-index says:

  <sha1> is shown as all 0's if a file is new on the filesystem and it
  is out of sync with the index.

But showing it as modified is not helpful and is contradictory to
behaviour in other backends.

One possible solution is to run `git update-index -- <file>' before
running git diff-index as mentioned above. But I am not familiar with
git plumbing commands.

Leo



--- End Message ---
--- Begin Message --- Subject: Re: bug#11344: 24.0.95; vc-git-state bug Date: Thu, 26 Apr 2012 11:32:03 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux)

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]