summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 98acc3f)
raw | patch | inline | side by side (parent: 98acc3f)
author | Alexandre Julliard <julliard@winehq.org> | |
Thu, 13 Sep 2007 09:50:29 +0000 (11:50 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 14 Sep 2007 05:37:54 +0000 (22:37 -0700) |
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/emacs/git.el | patch | blob | history |
diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el
index d1068c625834983caad5fd7edcef762fd54da010..2d77fd47ece21af7b79b3e5806521e208d5d92b0 100644 (file)
--- a/contrib/emacs/git.el
+++ b/contrib/emacs/git.el
(defun git-add-file ()
"Add marked file(s) to the index cache."
(interactive)
- (let ((files (git-get-filenames (git-marked-files-state 'unknown))))
+ (let ((files (git-get-filenames (git-marked-files-state 'unknown 'ignored))))
(unless files
(push (file-relative-name (read-file-name "File to add: " nil nil t)) files))
(apply #'git-run-command nil nil "update-index" "--add" "--" files)
(defun git-remove-file ()
"Remove the marked file(s)."
(interactive)
- (let ((files (git-get-filenames (git-marked-files-state 'added 'modified 'unknown 'uptodate))))
+ (let ((files (git-get-filenames (git-marked-files-state 'added 'modified 'unknown 'uptodate 'ignored))))
(unless files
(push (file-relative-name (read-file-name "File to remove: " nil nil t)) files))
(if (yes-or-no-p