From: Junio C Hamano <gitster@pobox.com>
To: Sitaram Chamarty <sitaramc@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: How do I qualify paths in the .gitignore file w.r.t. the repo root directory?
Date: Thu, 26 Feb 2009 09:04:41 -0800 [thread overview]
Message-ID: <7v1vtluo2e.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: slrngqc47n.t1k.sitaramc@sitaramc.homelinux.net
Sitaram Chamarty <sitaramc@gmail.com> writes:
> How about this:
>
> ----8<----
>
> - an optional leading ! symbol meaning "unignore paths
> that match this pattern, instead of ignoring them"
>
> - an optional trailing / symbol meaning "this pattern
> matches only with a directory (i.e., files and
> symlinks won't match)"
>
> - the above two symbols (if present) are then removed.
> What remains is treated as a normal shell glob
> pattern, with the additional restriction that if the
> pattern still contains a slash, it matches only at the
> current directory and not in its subdirectories
Sure, but then you are not stripping the leading / from the pattern but
you do not use it for the purpose of matching, right?
I think your original before I wondered about the ambiguity is the best
rewrite so far.
next prev parent reply other threads:[~2009-02-26 17:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-24 6:47 How do I qualify paths in the .gitignore file w.r.t. the repo root directory? Brent Goodrick
2009-02-24 7:06 ` Junio C Hamano
2009-02-24 9:07 ` Sitaram Chamarty
2009-02-24 17:33 ` Junio C Hamano
2009-02-24 18:31 ` Sitaram Chamarty
2009-02-25 3:31 ` Sitaram Chamarty
2009-02-25 8:36 ` Junio C Hamano
2009-02-25 11:17 ` Sitaram Chamarty
2009-02-25 21:25 ` Junio C Hamano
2009-02-26 0:45 ` Björn Steinbrink
2009-02-26 1:23 ` Sitaram Chamarty
2009-02-26 3:48 ` Sitaram Chamarty
2009-02-26 17:04 ` Junio C Hamano [this message]
2009-02-25 1:14 ` Brent Goodrick
2009-02-25 4:01 ` Sitaram Chamarty
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=7v1vtluo2e.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=sitaramc@gmail.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