{"thread":{"id":"22774","subject":"Explicitly adding ignored files in subdirectories not working","startedAt":"2010-02-23T21:07:52Z","lastAt":"2010-02-27T17:03:42Z","messageCount":8,"participants":["Sverre Rabbelier","Johannes Schindelin","Jeff King","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"135466","messageId":"fabb9a1e1002231307o2c3499e6k3f1026f71a544b16@mail.gmail.com","threadId":"22774","inReplyTo":null,"subject":"Explicitly adding ignored files in subdirectories not working","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2010-02-23T21:07:52Z","receivedAt":"2010-02-23T21:07:52Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nI've been bitten by this before, is this behavior intentional? We\ndon't even warn that the user's action was ignored; at the very least\nwe should do that. The current behavior is just frustrating.\n\nsverre@laptop-sverre:~/code$ git init ignoretest\nInitialized empty Git repository in /home/sverre/code/ignoretest/.git/\nsverre@laptop-sverre:~/code$ cd ignoretest/\nsverre@laptop-sverre:~/code/ignoretest$ mkdir subdir\nsverre@laptop-sverre:~/code/ignoretest$ echo \"hi\" >> subdir/a.txt\nsverre@laptop-sverre:~/code/ignoretest$ echo \"subdir\" >> .gitignore\nsverre@laptop-sverre:~/code/ignoretest$ git add .gitignore\nsverre@laptop-sverre:~/code/ignoretest$ git commit -m \"set up ignore\"\n[master (root-commit) 5a5a614] set up ignore\n 1 files changed, 1 insertions(+), 0 deletions(-)\n create mode 100644 .gitignore\nsverre@laptop-sverre:~/code/ignoretest$ git add subdir/a.txt\nsverre@laptop-sverre:~/code/ignoretest$ git status\n# On branch master\nnothing to commit (working directory clean)\n\n\n-- \nCheers,\n\nSverre Rabbelier\n"},{"id":"135474","messageId":"alpine.DEB.1.00.1002232248000.3980@intel-tinevez-2-302","threadId":"22774","inReplyTo":"fabb9a1e1002231307o2c3499e6k3f1026f71a544b16@mail.gmail.com","subject":"Re: Explicitly adding ignored files in subdirectories not working","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2010-02-23T21:50:48Z","receivedAt":"2010-02-23T21:50:48Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Tue, 23 Feb 2010, Sverre Rabbelier wrote:\n\n> I've been bitten by this before, is this behavior intentional? We\n> don't even warn that the user's action was ignored; at the very least\n> we should do that. The current behavior is just frustrating.\n\nI get something like this:\n\n-- snip --\n$ cd Documentation\n$ touch doc.dep\n$ git add doc.dep\nThe following paths are ignored by one of your .gitignore files:\nDocumentation/doc.dep\nUse -f if you really want to add them.\nfatal: no files added\n-- snap --\n\nCiao,\nDscho\n"},{"id":"135479","messageId":"fabb9a1e1002231358g20ce98fav375e797bd719c793@mail.gmail.com","threadId":"22774","inReplyTo":"alpine.DEB.1.00.1002232248000.3980@intel-tinevez-2-302","subject":"Re: Explicitly adding ignored files in subdirectories not working","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2010-02-23T21:58:41Z","receivedAt":"2010-02-23T21:58:41Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Tue, Feb 23, 2010 at 22:50, Johannes Schindelin\n<Johannes.Schindelin@gmx.de> wrote:\n> $ cd Documentation\n> $ touch doc.dep\n> $ git add doc.dep\n> The following paths are ignored by one of your .gitignore files:\n> Documentation/doc.dep\n> Use -f if you really want to add them.\n> fatal: no files added\n\nDo you have Documentation ignored? It works fine for ignored files,\nfiles in _ignored directories_ however... :)\n\n-- \nCheers,\n\nSverre Rabbelier\n"},{"id":"135480","messageId":"alpine.DEB.1.00.1002232310520.3980@intel-tinevez-2-302","threadId":"22774","inReplyTo":"fabb9a1e1002231358g20ce98fav375e797bd719c793@mail.gmail.com","subject":"Re: Explicitly adding ignored files in subdirectories not working","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2010-02-23T22:11:09Z","receivedAt":"2010-02-23T22:11:09Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Tue, 23 Feb 2010, Sverre Rabbelier wrote:\n\n> On Tue, Feb 23, 2010 at 22:50, Johannes Schindelin\n> <Johannes.Schindelin@gmx.de> wrote:\n> > $ cd Documentation\n> > $ touch doc.dep\n> > $ git add doc.dep\n> > The following paths are ignored by one of your .gitignore files:\n> > Documentation/doc.dep\n> > Use -f if you really want to add them.\n> > fatal: no files added\n> \n> Do you have Documentation ignored? It works fine for ignored files,\n> files in _ignored directories_ however... :)\n\nAh, that's what I missed...\n\nSorry,\nDscho\n"},{"id":"135523","messageId":"20100224045958.GA2385@coredump.intra.peff.net","threadId":"22774","inReplyTo":"fabb9a1e1002231307o2c3499e6k3f1026f71a544b16@mail.gmail.com","subject":"Re: Explicitly adding ignored files in subdirectories not working","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2010-02-24T04:59:58Z","receivedAt":"2010-02-24T04:59:58Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Tue, Feb 23, 2010 at 10:07:52PM +0100, Sverre Rabbelier wrote:\n\n> I've been bitten by this before, is this behavior intentional? We\n> don't even warn that the user's action was ignored; at the very least\n> we should do that. The current behavior is just frustrating.\n\nIt is intentional to consider them ignored (but was broken prior to\nv1.7.0), but it is a bug not to complain to the user. See:\n\n  http://thread.gmane.org/gmane.comp.version-control.git/140405\n\n-Peff\n"},{"id":"135828","messageId":"fabb9a1e1002270459h55fbd1c0o509106e035402810@mail.gmail.com","threadId":"22774","inReplyTo":"20100224045958.GA2385@coredump.intra.peff.net","subject":"Re: Explicitly adding ignored files in subdirectories not working","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2010-02-27T12:59:46Z","receivedAt":"2010-02-27T12:59:46Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Wed, Feb 24, 2010 at 05:59, Jeff King <peff@peff.net> wrote:\n>  http://thread.gmane.org/gmane.comp.version-control.git/140405\n\nPeff, IIRC from that thread was left to die with you handing over to\nJunio? Junio, do you intend to investigate what's going on there?\n\n-- \nCheers,\n\nSverre Rabbelier\n"},{"id":"135842","messageId":"7v4ol239aq.fsf@alter.siamese.dyndns.org","threadId":"22774","inReplyTo":"fabb9a1e1002270459h55fbd1c0o509106e035402810@mail.gmail.com","subject":"Re: Explicitly adding ignored files in subdirectories not working","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2010-02-27T16:58:21Z","receivedAt":"2010-02-27T16:58:21Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Sverre Rabbelier <srabbelier@gmail.com> writes:\n\n>> http://thread.gmane.org/gmane.comp.version-control.git/140405\n>\n> Peff, IIRC from that thread was left to die with you handing over to\n> Junio? Junio, do you intend to investigate what's going on there?\n\nThe thread is still in my inbox but haven't had a chance to allocate\nenough time to look at the issue yet.\n"},{"id":"135843","messageId":"fabb9a1e1002270903l4852efb4j5b95ee0481743326@mail.gmail.com","threadId":"22774","inReplyTo":"7v4ol239aq.fsf@alter.siamese.dyndns.org","subject":"Re: Explicitly adding ignored files in subdirectories not working","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2010-02-27T17:03:42Z","receivedAt":"2010-02-27T17:03:42Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Sat, Feb 27, 2010 at 17:58, Junio C Hamano <gitster@pobox.com> wrote:\n> The thread is still in my inbox but haven't had a chance to allocate\n> enough time to look at the issue yet.\n\nUnderstandable, I'll be patient until then :).\n\n-- \nCheers,\n\nSverre Rabbelier\n"}]}