{"thread":{"id":"30650","subject":"git 1.7.10.msysgit.1: different behaviour in \".gitignore\" and \".git/info/exclude\"","startedAt":"2012-05-30T08:43:56Z","lastAt":"2012-05-30T10:52:33Z","messageCount":3,"participants":["Thomas Wichern","Johannes Sixt"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"192459","messageId":"96434119.20120530104356@gmx.de","threadId":"30650","inReplyTo":null,"subject":"git 1.7.10.msysgit.1: different behaviour in \".gitignore\" and \".git/info/exclude\"","fromName":"Thomas Wichern","fromEmail":"nordertom@gmx.de","sentAt":"2012-05-30T08:43:56Z","receivedAt":"2012-05-30T08:43:56Z","isPatch":false,"sender":{"key":"nordertom@gmx.de","avatar":null},"body":"Hi,\n\nI noticed the following difference when using the pattern \"/(*)/\"\n(ignore all directories where the name is enclosed in parenthesis)\n\nIf you have a \".gitignore\" - file that contains the pattern \"/(*)/\", a\ndirectory that matches the pattern is ignored completely.\n\nIf you put the same pattern into the \".git/info/exclude\" - file, the\npattern does not work - these directories still show up.\n\nI expected that all directories anywhere the repository that match the\npattern to be ignored.\n\nAm I doing something wrong? Is the pattern not correct?\n\nHorrido,\nThomas\n\n---\ngit version 1.7.10.msysgit.1\nWindows 7 Pro\n"},{"id":"192469","messageId":"4FC5F661.6090105@viscovery.net","threadId":"30650","inReplyTo":"96434119.20120530104356@gmx.de","subject":"Re: git 1.7.10.msysgit.1: different behaviour in \".gitignore\" and \".git/info/exclude\"","fromName":"Johannes Sixt","fromEmail":"j.sixt@viscovery.net","sentAt":"2012-05-30T10:28:49Z","receivedAt":"2012-05-30T10:28:49Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Am 5/30/2012 10:43, schrieb Thomas Wichern:\n> If you have a \".gitignore\" - file that contains the pattern \"/(*)/\", a\n> directory that matches the pattern is ignored completely.\n> \n> If you put the same pattern into the \".git/info/exclude\" - file, the\n> pattern does not work - these directories still show up.\n> \n> I expected that all directories anywhere the repository that match the\n> pattern to be ignored.\n\nThe first slash in the pattern means: Match only in this directory, not in\nsubdirectories. For patterns in .git/info/exclude, \"this directory\" is the\ntop-level of the repository.\n\n> Am I doing something wrong? Is the pattern not correct?\n\nPerhaps you need \"(*)/\", i.e., without the first slash.\n\n-- Hannes\n"},{"id":"192471","messageId":"799289647.20120530125233@gmx.de","threadId":"30650","inReplyTo":"4FC5F661.6090105@viscovery.net","subject":"Re: git 1.7.10.msysgit.1: different behaviour in \".gitignore\" and \".git/info/exclude\"","fromName":"Thomas Wichern","fromEmail":"nordertom@gmx.de","sentAt":"2012-05-30T10:52:33Z","receivedAt":"2012-05-30T10:52:33Z","isPatch":false,"sender":{"key":"nordertom@gmx.de","avatar":null},"body":"Hi Hannes,\n\nthanks a lot - it was my fault and you're right.\nIt works with \"(*)/\" very well!\n\nHorrido,\nThomas\n\n\n> Am 5/30/2012 10:43, schrieb Thomas Wichern:\n>> If you have a \".gitignore\" - file that contains the pattern \"/(*)/\", a\n>> directory that matches the pattern is ignored completely.\n>> \n>> If you put the same pattern into the \".git/info/exclude\" - file, the\n>> pattern does not work - these directories still show up.\n>> \n>> I expected that all directories anywhere the repository that match the\n>> pattern to be ignored.\n\n> The first slash in the pattern means: Match only in this directory, not in\n> subdirectories. For patterns in .git/info/exclude, \"this directory\" is the\n> top-level of the repository.\n\n>> Am I doing something wrong? Is the pattern not correct?\n\n> Perhaps you need \"(*)/\", i.e., without the first slash.\n\n> -- Hannes\n"}]}