Subject: bug#1589: Possible fix

From: "Eric Hanchrow" <[email-masked]>
Date: Fri, 26 Dec 2008 10:28:55 -0800

The fix might be as simple as this.  I'll use this for a while and see
how it goes.

diff --git a/lisp/vc-git.el b/lisp/vc-git.el
index efb59ac..bfcc5a9 100644
--- a/lisp/vc-git.el
+++ b/lisp/vc-git.el
@@ -375,7 +375,9 @@ If nil, use the value of `vc-diff-switches'.  If
t, use no switches."
      (vc-git-command (current-buffer) 'async files "ls-files" "-z" "-o" "-i"
                      "--directory" "--no-empty-directory"
"--exclude-standard" "--"))
     ('diff-index
-     (vc-git-command (current-buffer) 'async files "diff-index" "-z"
"-M" "HEAD" "--")))
+     (vc-git-command (current-buffer) 'async files "diff-index"
+		     "--relative"
+		     "-z" "-M" "HEAD" "--")))
   (vc-exec-after
    `(vc-git-after-dir-status-stage (quote ,stage) (quote ,files)
(quote ,update-function))))