emacs-devel
[Top][All Lists]
Advanced

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

Re: [patch] vc-git-dired-state-info buglet


From: Alexandre Julliard
Subject: Re: [patch] vc-git-dired-state-info buglet
Date: Tue, 27 Nov 2007 22:55:06 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

Thien-Thi Nguyen <address@hidden> writes:

> i think `vc-git-dired-state-info' should call `vc-git-state'
> instead of `vc-state'.  here is a recipe: create dir `test',
> put it under git version control system, add and commit some
> files, then modify a subset of the files.  then do:
>
> C-x v d test RET  ; => empty because no files "locked"
> v t               ; => toggle terse mode
>
> before the patch, no files are shown w/ "(modified)" status.
> after the patch, some are shown, as i expected.
>
> i wonder if my expectation is incorrect.  comments?

That's not the real problem, the other backends also use vc-state here
and it works fine. The real problem is that vc-git-dir-state is
broken. Something like this should help:

Index: lisp/vc-git.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/vc-git.el,v
retrieving revision 1.29
diff -u -p -r1.29 vc-git.el
--- lisp/vc-git.el      25 Nov 2007 00:41:49 -0000      1.29
+++ lisp/vc-git.el      27 Nov 2007 21:54:06 -0000
@@ -152,7 +152,7 @@
 
 (defun vc-git-dir-state (dir)
   (with-temp-buffer
-    (vc-git-command (current-buffer) nil nil "ls-files" "-t")
+    (vc-git-command (current-buffer) nil nil "ls-files" "-t" "-c" "-m" "-o")
     (goto-char (point-min))
     (let ((status-char nil)
          (file nil))

-- 
Alexandre Julliard
address@hidden




reply via email to

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