git.el: Prepend a slash to the file name when adding to .gitignore.
This way the ignore command will really only ignore the marked files and not files with the same name in subdirectories. Signed-off-by: Alexandre Julliard <julliard@winehq.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Alexandre Julliard committed
Jul 22, 2006 at 15:39 UTC
9f56a7fda940caa7d4a1b06947481b5157510557
1 file changed
+1
-1
contrib/emacs/git.el
+1
-1
@@ -258,7 +258,7 @@ and returns the process output as a string."
258
(set-buffer (find-file-noselect ignore-name))
259
(goto-char (point-max))
260
(unless (zerop (current-column)) (insert "\n"))
261
- (insert name "\n")
261
+ (insert "/" name "\n")
262
(sort-lines nil (point-min) (point-max))
263
(save-buffer))
264
(when created