{"thread":{"id":"5600","subject":"Can the git exclude files mask out whole directories?","startedAt":"2006-09-18T18:28:07Z","lastAt":"2006-09-18T18:32:20Z","messageCount":2,"participants":["Alex Bennee","Shawn Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"27139","messageId":"1158604087.28026.160.camel@okra.transitives.com","threadId":"5600","inReplyTo":null,"subject":"Can the git exclude files mask out whole directories?","fromName":"Alex Bennee","fromEmail":"kernel-hacker@bennee.com","sentAt":"2006-09-18T18:28:07Z","receivedAt":"2006-09-18T18:28:07Z","isPatch":false,"sender":{"key":"kernel-hacker@bennee.com","avatar":null},"body":"Hi,\n\nI may be being a bit dim but according to the man page I should be able\nto specify paths with /'s in them. I want to exclude all CVS directories\nso I can commit stuff. I have tried:\n\n#\n# Ignore CVS files\n#\n*/CVS/*\n\nAmongst many variants and:\n\n git-ls-files --others --exclude-from=.git/info/exclude\n\nAnd all my CVS directories still get listed. I can get what I want with\nadding:\n\n# Ignore CVS files\n#\nEntries\nEntries.Log\nRepository\nRoot\nTag\n\nto my exclude file but that seems suboptimal. Besides I'll also want to\nbe ignoring whole build directories later. Have I subtly misunderstood\nthe man page?\n\nConfused,\n\n-- \nAlex, homepage: http://www.bennee.com/~alex/\nMajority, n.: That quality that distinguishes a crime from a law.\n"},{"id":"27140","messageId":"20060918183220.GA31371@spearce.org","threadId":"5600","inReplyTo":"1158604087.28026.160.camel@okra.transitives.com","subject":"Re: Can the git exclude files mask out whole directories?","fromName":"Shawn Pearce","fromEmail":"spearce@spearce.org","sentAt":"2006-09-18T18:32:20Z","receivedAt":"2006-09-18T18:32:20Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Alex Bennee <kernel-hacker@bennee.com> wrote:\n> I may be being a bit dim but according to the man page I should be able\n> to specify paths with /'s in them. I want to exclude all CVS directories\n> so I can commit stuff. I have tried:\n> \n> #\n> # Ignore CVS files\n> #\n> */CVS/*\n\nJust use CVS in your info/exclude file:\n\n\t#\n\t# Ignore CVS files\n\t#\n\tCVS\n \n> to my exclude file but that seems suboptimal. Besides I'll also want to\n> be ignoring whole build directories later. Have I subtly misunderstood\n> the man page?\n\nI ignore my build directories all the time by just putting their\nnames in .gitignore, with no trailing /.\n\n-- \nShawn.\n"}]}