git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Relative paths don't work in .gitignore as would be expected.
@ 2015-02-01 22:51 /#!/JoePea
  2015-02-02  5:57 ` Stefan Beller
  0 siblings, 1 reply; 6+ messages in thread
From: /#!/JoePea @ 2015-02-01 22:51 UTC (permalink / raw)
  To: git

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, and we're not in the root, nor do gitignore
files always exist in the root of a git repo. Being able to have

  ./*.js

in .gitignore would make much sense.

/#!/JoePea

^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <CAKU1PAXgofoOqtFMrLYyRoFqNp3Poj-PO35eh1ukxR=h29FPfQ@mail.gmail.com>]

end of thread, other threads:[~2015-02-12  6:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-01 22:51 Relative paths don't work in .gitignore as would be expected /#!/JoePea
2015-02-02  5:57 ` Stefan Beller
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).