In magit-ignore-file, add a new line if there wasn't one in the ignore file

This commit is contained in:
Rémi Vanicat 2010-03-12 16:43:08 +01:00
parent 7ca25460fa
commit a291507171

View file

@ -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)))