Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git.el: Prepend a slash to the file name when adding to .gitignore.
author
Alexandre Julliard
<julliard@winehq.org>
Sat, 22 Jul 2006 13:39:32 +0000
(15:39 +0200)
committer
Junio C Hamano
<junkio@cox.net>
Mon, 24 Jul 2006 06:35:32 +0000
(23:35 -0700)
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>
contrib/emacs/git.el
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
51a6e56
)
diff --git
a/contrib/emacs/git.el
b/contrib/emacs/git.el
index 7371d4b46333e7c924f4a9ea3572be7b0e85071f..58374713754cdc93ab9b5c810eb5990846816f4e 100644
(file)
--- 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