]> git.eshelyaron.com Git - emacs.git/commitdiff
Implement 'mark-resolved' for the Git backend
authorDmitry Gutov <dgutov@yandex.ru>
Sat, 23 May 2020 02:08:06 +0000 (05:08 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sat, 23 May 2020 02:08:06 +0000 (05:08 +0300)
* lisp/vc/vc-git.el (vc-git-mark-resolved): New function.

lisp/vc/vc-git.el

index 2caa287bce2bd4e5ac93220993e0438d4a06d1bd..dcb52282656f62bb5418bdb86b6422410769912b 100644 (file)
@@ -72,6 +72,7 @@
 ;;                                          by git, so it's probably
 ;;                                          not a good idea.
 ;; - merge-news (file)                      see `merge-file'
+;; - mark-resolved (file)                          OK
 ;; - steal-lock (file &optional revision)          NOT NEEDED
 ;; HISTORY FUNCTIONS
 ;; * print-log (files buffer &optional shortlog start-revision limit)   OK
@@ -1530,6 +1531,9 @@ This requires git 1.8.4 or later, for the \"-L\" option of \"git log\"."
 (defun vc-git-rename-file (old new)
   (vc-git-command nil 0 (list old new) "mv" "-f" "--"))
 
+(defun vc-git-mark-resolved (files)
+  (vc-git-command nil 0 files "add"))
+
 (defvar vc-git-extra-menu-map
   (let ((map (make-sparse-keymap)))
     (define-key map [git-grep]