]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/vc: Fix use of find-conflicted-file in Git.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 1 Dec 2014 18:15:28 +0000 (13:15 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 1 Dec 2014 18:16:54 +0000 (13:16 -0500)
* lisp/vc/vc.el (vc-find-conflicted-file): Look for conflicted files in the
current "project" rather than just the current directory.
* lisp/vc/vc-git.el (vc-git-conflicted-files): Clarify in which directory
the file names make sense.

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

index ec95af9441fed7bbdef107cfe5d023f05bf9ca49..481bd1505028c5abceefc5dec960036f5bf3a692 100644 (file)
@@ -1,5 +1,10 @@
 2014-12-01  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * vc/vc.el (vc-find-conflicted-file): Look for conflicted files in the
+       current "project" rather than just the current directory.
+       * vc/vc-git.el (vc-git-conflicted-files): Clarify in which directory
+       the file names make sense.
+
        * vc/smerge-mode.el (smerge-swap): New command.
 
        * vc/diff-mode.el (diff-kill-applied-hunks): New command.
index 805e48831ef5db57a949bfca9c8dd74bd1e891fa..53db340146fdbfb4d8ef092e1fb9914e79dc636d 100644 (file)
@@ -777,7 +777,7 @@ This prompts for a branch to merge from."
           ;; See git-status(1).
           (when (member state '("AU" "UD" "UA" ;; "DD"
                                 "DU" "AA" "UU"))
-            (push file files)))))))
+            (push (expand-file-name file directory) files)))))))
 
 (defun vc-git-resolve-when-done ()
   "Call \"git add\" if the conflict markers have been removed."
index b6ba2d3e86306c762a4e4929276d71f46bf700cb..d3315ca08b3cd678abd77cd4eb7ab51a9d324b41 100644 (file)
@@ -2101,8 +2101,9 @@ changes from the current branch."
   (let* ((backend (or (if buffer-file-name (vc-backend buffer-file-name))
                       (vc-responsible-backend default-directory)
                       (error "No VC backend")))
+         (root (vc-root-dir))
          (files (vc-call-backend backend
-                                 'conflicted-files default-directory)))
+                                 'conflicted-files (or root default-directory))))
     ;; Don't try and visit the current file.
     (if (equal (car files) buffer-file-name) (pop files))
     (if (null files)