From: Stefan Beller <stefanbeller@gmail.com>
To: "/#!/JoePea" <trusktr@gmail.com>, git@vger.kernel.org
Subject: Re: Relative paths don't work in .gitignore as would be expected.
Date: Sun, 01 Feb 2015 21:57:30 -0800 [thread overview]
Message-ID: <54CF11CA.6000308@gmail.com> (raw)
In-Reply-To: <CAKU1PAWMh_3x9OoFmXG4+5b=7PRckC47k-MAq++SXahxAP5V7g@mail.gmail.com>
On 01.02.2015 14:51, /#!/JoePea wrote:
> I have this in my .gitignore:
>
> ./*.js
>
> I would expect that to cause git to ignore .js files in the same
> folder as .gitignore, but it doesn't do anything. However, this works:
>
> /*.js
>
> I'm not sure what this actually means because a leading slash is the
> root of some filesystem,
That's true, though you'd never (barely?) git version control an entire
file system?
A trailing "/**" matches everything inside. For example, "abc/**"
matches all files inside directory "abc", relative to the location
of the .gitignore file, with infinite depth.
(from man gitignore, though reading that and not finding a './' it may
need improvement
next prev parent reply other threads:[~2015-02-02 5:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-01 22:51 Relative paths don't work in .gitignore as would be expected /#!/JoePea
2015-02-02 5:57 ` Stefan Beller [this message]
2015-02-02 19:15 ` Junio C Hamano
2015-02-03 2:18 ` Stefan Beller
2015-02-03 20:11 ` Junio C Hamano
[not found] <CAKU1PAXgofoOqtFMrLYyRoFqNp3Poj-PO35eh1ukxR=h29FPfQ@mail.gmail.com>
2015-02-12 6:28 ` /#!/JoePea
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=54CF11CA.6000308@gmail.com \
--to=stefanbeller@gmail.com \
--cc=git@vger.kernel.org \
--cc=trusktr@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 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.