{"thread":{"id":"38554","subject":"Re: Relative paths don't work in .gitignore as would be expected.","startedAt":"2015-02-12T06:28:28Z","lastAt":"2015-02-12T06:28:28Z","messageCount":1,"participants":["/#!/JoePea"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"255958","messageId":"CAKU1PAU8zSa3jjPYC7egRxJkr9hM6FerVXLsaU7ieCOZwEFd0g@mail.gmail.com","threadId":"38554","inReplyTo":"CAKU1PAXgofoOqtFMrLYyRoFqNp3Poj-PO35eh1ukxR=h29FPfQ@mail.gmail.com","subject":"Re: Relative paths don't work in .gitignore as would be expected.","fromName":"/#!/JoePea","fromEmail":"trusktr@gmail.com","sentAt":"2015-02-12T06:28:28Z","receivedAt":"2015-02-12T06:28:28Z","isPatch":false,"sender":{"key":"trusktr@gmail.com","avatar":"https://gravatar.com/avatar/4fd85be8f7e2889358f1d5023b1afc7ece0938f7e9acb4e6e5fea5fb6e17efee?d=mp&s=160"},"body":"+git@vger.kernel.org, plain text\n\nI would say just use zsh globbing, it has the double star, but it'd\nlikely too late for that. You'd add a single rule: ignore any files\nthat are in a directory higher up than the .gitignore where the rule\nis found.\n\nThen if you have a git repo in your fs at /git/repo with a\n/git/repo/.gitignore you could put /git/repo/*.js, *.js, or ./*.js to\nignore the same thing (the absolute path may or may not bite the\nperson in the ass when he moves the repo, but that's not our problem),\nso those would be equivalent to the current /*.js (give or take the\nabsolute example). You could do **/*.js the zsh way to start ignoring\nthings everywhere, equivalent to the current *.js.\n/#!/JoePea\n\n\nOn Tue, Feb 10, 2015 at 1:19 AM, /#!/JoePea <trusktr@gmail.com> wrote:\n> I would say just use zsh globbing, it has the double star, but it'd likely\n> too late for that. You'd add a single rule: ignore any files that are in a\n> directory higher up than the .gitignore where the rule is found.\n>\n> Then if you have a git repo in your fs at /git/repo with a\n> /git/repo/.gitignore you could put /git/repo/*.js, *.js, or ./*.js to ignore\n> the same thing (the absolute path may or may not bite the person in the ass\n> when he moves the repo, but that's not our problem), so those would be\n> equivalent to the current /*.js (give or take the absolute example). You\n> could do **/*.js the zsh way to start ignoring things everywhere, equivalent\n> to the current *.js.\n>\n> /#!/JoePea\n"}]}