From: Junio C Hamano <junkio@cox.net>
To: Yasushi SHOJI <yashi@atmark-techno.com>
Cc: git@vger.kernel.org
Subject: Re: gitignore: regex for the current dir files only?
Date: Wed, 07 Jun 2006 19:40:07 -0700 [thread overview]
Message-ID: <7virnccquw.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <87mzcol7i3.wl@mail2.atmark-techno.com> (Yasushi SHOJI's message of "Thu, 08 Jun 2006 11:13:24 +0900")
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
prev parent reply other threads:[~2006-06-08 2:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-08 2:13 gitignore: regex for the current dir files only? Yasushi SHOJI
2006-06-08 2:40 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7virnccquw.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=yashi@atmark-techno.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox