summaryrefslogtreecommitdiffstats
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-24 08:35:32 +0200
commit9f56a7fda940caa7d4a1b06947481b5157510557 (patch)
tree8039e0002a9bb41672f3c09a6978d500cc1e998b /contrib/emacs
parentgit.el: Run git-rerere on commits if the rr-cache directory exists. (diff)
downloadgit-9f56a7fda940caa7d4a1b06947481b5157510557.tar.xz
git-9f56a7fda940caa7d4a1b06947481b5157510557.zip
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 7371d4b463..5837471375 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