]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-git-dir-status-goto-stage): Pass --relative to the
authorEric Hanchrow <eric.hanchrow@gmail.com>
Mon, 25 Jan 2010 04:46:40 +0000 (20:46 -0800)
committerDan Nicolaescu <dann@ics.uci.edu>
Mon, 25 Jan 2010 04:46:40 +0000 (20:46 -0800)
diff-index command.  This requires at least git-1.5.5.  (Bug#1589).

etc/NEWS
lisp/ChangeLog
lisp/vc-git.el

index 5eb39faf6bab307cd6efaccb6fc0b4923eaab83c..7d864d15fd541a55f76c975e6ff6bb56821f7211 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -328,6 +328,8 @@ their content displayed.
 
 **** vc-dir displays the stash status
 
+**** vc-dir requires at least git-1.5.5.
+
 *** vc-bzr supports operating with shelves: the shelve list is
 displayed in the *vc-dir* header, shelves can be created, removed and applied.
 
index fa3761738bffae97632e1fa016e565c51f6e65ae..085c082cadbe07f8f4890a257c91b13a25fd428e 100644 (file)
@@ -1,3 +1,8 @@
+2010-01-25  Eric Hanchrow  <eric.hanchrow@gmail.com>  (tiny change)
+
+       * vc-git.el (vc-git-dir-status-goto-stage): Pass --relative to the
+       diff-index command.  This requires at least git-1.5.5.  (Bug#1589).
+
 2010-01-24  Dan Nicolaescu  <dann@ics.uci.edu>
 
        Remove support for adding --signoff on commit.
index 4896f79a3956c463ef8f7e2161cdaa9acedd3dfc..0d8e6307d6eaaf120bab4771c874261aa7f086e4 100644 (file)
@@ -381,7 +381,7 @@ 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))))