aboutsummaryrefslogtreecommitdiff
path: root/contrib/emacs
diff options
context:
space:
mode:
authorAlexandre Julliard <julliard@winehq.org>2006-07-22 15:39:32 +0200
committerJunio C Hamano <junkio@cox.net>2006-07-23 23:35:32 -0700
commit9f56a7fda940caa7d4a1b06947481b5157510557 (patch)
tree8039e0002a9bb41672f3c09a6978d500cc1e998b /contrib/emacs
parent51a6e56fb7f63e110dc0c3c1fddd07ca9e22ced6 (diff)
downloadgit-9f56a7fda940caa7d4a1b06947481b5157510557.tar.gz
git-9f56a7fda940caa7d4a1b06947481b5157510557.tar.xz
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>
Diffstat (limited to 'contrib/emacs')
-rw-r--r--contrib/emacs/git.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el
index 7371d4b46..583747137 100644
--- a/contrib/emacs/git.el
+++ b/contrib/emacs/git.el
@@ -258,7 +258,7 @@ and returns the process output as a string."
(set-buffer (find-file-noselect ignore-name))
(goto-char (point-max))
(unless (zerop (current-column)) (insert "\n"))
- (insert name "\n")
+ (insert "/" name "\n")
(sort-lines nil (point-min) (point-max))
(save-buffer))
(when created