diff options
| author | Stefan Monnier | 2014-12-01 13:15:28 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2014-12-01 13:16:54 -0500 |
| commit | b34578dd880e788a68bb7bbd12fd848ba461226a (patch) | |
| tree | ef45f477121114de64ece3eeeac7e7c72fe6b8f5 | |
| parent | 8dac9c34d8a2575d44fc78824ec77a58b63701b6 (diff) | |
| download | emacs-b34578dd880e788a68bb7bbd12fd848ba461226a.tar.gz emacs-b34578dd880e788a68bb7bbd12fd848ba461226a.zip | |
* lisp/vc: Fix use of find-conflicted-file in Git.
* 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.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc/vc-git.el | 2 | ||||
| -rw-r--r-- | lisp/vc/vc.el | 3 |
3 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ec95af9441f..481bd150502 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2014-12-01 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2014-12-01 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * vc/vc.el (vc-find-conflicted-file): Look for conflicted files in the | ||
| 4 | current "project" rather than just the current directory. | ||
| 5 | * vc/vc-git.el (vc-git-conflicted-files): Clarify in which directory | ||
| 6 | the file names make sense. | ||
| 7 | |||
| 3 | * vc/smerge-mode.el (smerge-swap): New command. | 8 | * vc/smerge-mode.el (smerge-swap): New command. |
| 4 | 9 | ||
| 5 | * vc/diff-mode.el (diff-kill-applied-hunks): New command. | 10 | * vc/diff-mode.el (diff-kill-applied-hunks): New command. |
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index 805e48831ef..53db340146f 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el | |||
| @@ -777,7 +777,7 @@ This prompts for a branch to merge from." | |||
| 777 | ;; See git-status(1). | 777 | ;; See git-status(1). |
| 778 | (when (member state '("AU" "UD" "UA" ;; "DD" | 778 | (when (member state '("AU" "UD" "UA" ;; "DD" |
| 779 | "DU" "AA" "UU")) | 779 | "DU" "AA" "UU")) |
| 780 | (push file files))))))) | 780 | (push (expand-file-name file directory) files))))))) |
| 781 | 781 | ||
| 782 | (defun vc-git-resolve-when-done () | 782 | (defun vc-git-resolve-when-done () |
| 783 | "Call \"git add\" if the conflict markers have been removed." | 783 | "Call \"git add\" if the conflict markers have been removed." |
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index b6ba2d3e863..d3315ca08b3 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el | |||
| @@ -2101,8 +2101,9 @@ changes from the current branch." | |||
| 2101 | (let* ((backend (or (if buffer-file-name (vc-backend buffer-file-name)) | 2101 | (let* ((backend (or (if buffer-file-name (vc-backend buffer-file-name)) |
| 2102 | (vc-responsible-backend default-directory) | 2102 | (vc-responsible-backend default-directory) |
| 2103 | (error "No VC backend"))) | 2103 | (error "No VC backend"))) |
| 2104 | (root (vc-root-dir)) | ||
| 2104 | (files (vc-call-backend backend | 2105 | (files (vc-call-backend backend |
| 2105 | 'conflicted-files default-directory))) | 2106 | 'conflicted-files (or root default-directory)))) |
| 2106 | ;; Don't try and visit the current file. | 2107 | ;; Don't try and visit the current file. |
| 2107 | (if (equal (car files) buffer-file-name) (pop files)) | 2108 | (if (equal (car files) buffer-file-name) (pop files)) |
| 2108 | (if (null files) | 2109 | (if (null files) |