In magit-ignore-file, add a new line if there wasn't one in the ignore file
This commit is contained in:
parent
7ca25460fa
commit
a291507171
1 changed files with 2 additions and 0 deletions
2
magit.el
2
magit.el
|
@ -3132,6 +3132,8 @@ Prefix arg means justify as well."
|
|||
(with-temp-buffer
|
||||
(insert-file-contents ignore-file)
|
||||
(goto-char (point-max))
|
||||
(unless (bolp)
|
||||
(insert "\n"))
|
||||
(insert "/" file "\n")
|
||||
(write-region nil nil ignore-file))
|
||||
(magit-need-refresh)))
|
||||
|
|
Loading…
Reference in a new issue