* gitignore: regex for the current dir files only?
@ 2006-06-08 2:13 Yasushi SHOJI
2006-06-08 2:40 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Yasushi SHOJI @ 2006-06-08 2:13 UTC (permalink / raw)
To: git
Hello,
this problem came up when I was editing vmlinux.lds.S in the kernel
tree.
because we have "vmlinux*" in the toplevel .gitignore in linus's tree,
all vmlinux.lds.S under arch/$(ARCH)/kernel/ is affected. for kernel,
it might as easier to remove "*" from the exp. but I was wandering if
it's worth to have an expression for gitignore to handle "a regex for
the current dir only"?
comments?
--
yashi
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: gitignore: regex for the current dir files only?
2006-06-08 2:13 gitignore: regex for the current dir files only? Yasushi SHOJI
@ 2006-06-08 2:40 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2006-06-08 2:40 UTC (permalink / raw)
To: Yasushi SHOJI; +Cc: git
Yasushi SHOJI <yashi@atmark-techno.com> writes:
> because we have "vmlinux*" in the toplevel .gitignore in linus's tree,
> all vmlinux.lds.S under arch/$(ARCH)/kernel/ is affected. for kernel,
> it might as easier to remove "*" from the exp. but I was wandering if
> it's worth to have an expression for gitignore to handle "a regex for
> the current dir only"?
Yeah, that would be a very useful thing to have. Something like
this?
#!/bin/sh
rm -rf test
mkdir -p test/a/b/c
cd test
git init-db
date >a/vmlinux.1
date >a/b/vmlinux.2
date >a/b/c/vmlinux.3
echo 'vmlinux*' >a/.gitignore
echo '!/vmlinux*' >a/b/.gitignore
git status -u
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-06-08 2:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-08 2:13 gitignore: regex for the current dir files only? Yasushi SHOJI
2006-06-08 2:40 ` Junio C Hamano
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.