From 059d1959a65de26d812c1680c8000297f0c98b87 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 8 Jun 2018 19:53:14 -0400 Subject: magit: Use magit-unstaged-files, not magit-modified-files The latter has been obsolete for a while and is removed in Magit's master branch. --- lisp/km-magit.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lisp') diff --git a/lisp/km-magit.el b/lisp/km-magit.el index d515acb..98ce5ad 100644 --- a/lisp/km-magit.el +++ b/lisp/km-magit.el @@ -48,7 +48,7 @@ a proper commit." (defun km/magit-update-or-auto-commit (&optional no-directory) (interactive "P") - (let ((files (delete-dups (nconc (magit-modified-files) + (let ((files (delete-dups (nconc (magit-unstaged-files) (magit-staged-files))))) (cl-case (length files) (0 (user-error "No tracked files with changes")) @@ -92,7 +92,7 @@ exist in the current project." (cond ((magit-anything-staged-p) (user-error "There are already staged changes")) ((member file (nconc (magit-untracked-files) - (magit-modified-files))) + (magit-unstaged-files))) (magit-with-toplevel (magit-stage-file file)) (magit-commit-extend)) (t @@ -109,7 +109,7 @@ branch." (cond ((magit-anything-staged-p) (user-error "There are already staged changes")) ((member file (nconc (magit-untracked-files) - (magit-modified-files))) + (magit-unstaged-files))) (magit-with-toplevel (magit-stage-file file)) (magit-run-git "commit" (concat "--message=WIP " file))) (t -- cgit v1.2.3