diff options
author | Alexandre Julliard <julliard@winehq.org> | 2006-07-22 15:39:32 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-07-23 23:35:32 -0700 |
commit | 9f56a7fda940caa7d4a1b06947481b5157510557 (patch) | |
tree | 8039e0002a9bb41672f3c09a6978d500cc1e998b /contrib | |
parent | 51a6e56fb7f63e110dc0c3c1fddd07ca9e22ced6 (diff) | |
download | git-9f56a7fda940caa7d4a1b06947481b5157510557.tar.gz |
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')
-rw-r--r-- | contrib/emacs/git.el | 2 |
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 |