Only ignore files in the current directory, not in subdirectories.

* magit.el (magit-ignore-thing-at-point): Prefix .gitignore line with
"/" so that it only matches in current directory.
This commit is contained in:
Marius Vollmer 2008-08-13 07:32:04 +03:00
parent 5f562fb22a
commit 231c4ba164
2 changed files with 1 additions and 1 deletions

0
.gitignore vendored Normal file
View file

View file

@ -931,7 +931,7 @@ the current line into your working tree.
(if info
(case (car info)
((other-file)
(append-to-file (concat (cadr info) "\n") nil ".gitignore")
(append-to-file (concat "/" (cadr info) "\n") nil ".gitignore")
(magit-update-status (magit-find-status-buffer)))))))
(defun magit-visit-thing-at-point ()