mirror of
https://codeberg.org/gwh/slackbuilds.git
synced 2024-11-16 19:51:19 +01:00
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:
parent
5f562fb22a
commit
231c4ba164
2 changed files with 1 additions and 1 deletions
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
2
magit.el
2
magit.el
|
@ -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 ()
|
||||
|
|
Loading…
Reference in a new issue