{"thread":{"id":"34018","subject":"info/exclude not working","startedAt":"2013-06-03T20:04:39Z","lastAt":"2013-06-03T20:44:06Z","messageCount":3,"participants":["Devin Rhode","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"219284","messageId":"CALy29pLQ-LWg0knzbzLoQfwSt+df_b3tNdWk7OeSN-CjkJhfsQ@mail.gmail.com","threadId":"34018","inReplyTo":null,"subject":"info/exclude not working","fromName":"Devin Rhode","fromEmail":"drhode@amobee.com","sentAt":"2013-06-03T20:04:39Z","receivedAt":"2013-06-03T20:04:39Z","isPatch":false,"sender":{"key":"drhode@amobee.com","avatar":null},"body":"For some reason info/exclude hasn't been working for me. I have a\npretty plain macbook pro, with a slow standard hard drive, running the\nlatest mac os 10.7 lion\n\nMBP:dish devin$ pwd\n/Users/devin/Dropbox/ads-G2/dish\n\nMBP:dish devin$ cat ../.git/info/exclude\n# git ls-files --others --exclude-from=.git/info/exclude\n# Lines that start with '#' are comments.\n# For a project mostly in C, the following would be a good set of\n# exclude patterns (uncomment them if you want to use them):\n# *.[oa]\n# *~\nmodels/CAFE.json\ndish/models/CAFE.json\n\nMBP:dish devin$ git status\n# On branch master\n# Changes not staged for commit:\n#   (use \"git add <file>...\" to update what will be committed)\n#   (use \"git checkout -- <file>...\" to discard changes in working directory)\n#\n# modified:   models/CAFE.json ***Shouldn't appear\n# modified:   page_0.ejs\n# modified:   page_0.xml\n# modified:   page_1.ejs\n# modified:   page_1.xml\n#\nno changes added to commit (use \"git add\" and/or \"git commit -a\")\n"},{"id":"219286","messageId":"20130603203226.GA23224@sigill.intra.peff.net","threadId":"34018","inReplyTo":"CALy29pLQ-LWg0knzbzLoQfwSt+df_b3tNdWk7OeSN-CjkJhfsQ@mail.gmail.com","subject":"Re: info/exclude not working","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2013-06-03T20:32:26Z","receivedAt":"2013-06-03T20:32:26Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, Jun 03, 2013 at 01:04:39PM -0700, Devin Rhode wrote:\n\n> MBP:dish devin$ cat ../.git/info/exclude\n> # git ls-files --others --exclude-from=.git/info/exclude\n> # Lines that start with '#' are comments.\n> # For a project mostly in C, the following would be a good set of\n> # exclude patterns (uncomment them if you want to use them):\n> # *.[oa]\n> # *~\n> models/CAFE.json\n> dish/models/CAFE.json\n> \n> MBP:dish devin$ git status\n> # On branch master\n> # Changes not staged for commit:\n> #   (use \"git add <file>...\" to update what will be committed)\n> #   (use \"git checkout -- <file>...\" to discard changes in working directory)\n> #\n> # modified:   models/CAFE.json ***Shouldn't appear\n\nThe exclude mechanism does not mean \"do not ever look at this file\". It\nmeans \"when you are adding untracked files, do not include this one\".\nSomebody has already added the file to the repository before your\nexclude was in place, so it is a tracked file.\n\nThere is currently no official mechanism in git to do what you want\n(there are some hacks, but they include many pitfalls).\n\n-Peff\n"},{"id":"219295","messageId":"CALy29p+pdXSLmMOGcJ+YcWe4TDDUsE3=Shg=jNp-=Nhw+OkORg@mail.gmail.com","threadId":"34018","inReplyTo":"20130603203226.GA23224@sigill.intra.peff.net","subject":"Re: info/exclude not working","fromName":"Devin Rhode","fromEmail":"drhode@amobee.com","sentAt":"2013-06-03T20:44:06Z","receivedAt":"2013-06-03T20:44:06Z","isPatch":false,"sender":{"key":"drhode@amobee.com","avatar":null},"body":"I wouldn't worry too much about this use case, we have a pretty lame workflow\n\nOn Mon, Jun 3, 2013 at 1:32 PM, Jeff King <peff@peff.net> wrote:\n> On Mon, Jun 03, 2013 at 01:04:39PM -0700, Devin Rhode wrote:\n>\n>> MBP:dish devin$ cat ../.git/info/exclude\n>> # git ls-files --others --exclude-from=.git/info/exclude\n>> # Lines that start with '#' are comments.\n>> # For a project mostly in C, the following would be a good set of\n>> # exclude patterns (uncomment them if you want to use them):\n>> # *.[oa]\n>> # *~\n>> models/CAFE.json\n>> dish/models/CAFE.json\n>>\n>> MBP:dish devin$ git status\n>> # On branch master\n>> # Changes not staged for commit:\n>> #   (use \"git add <file>...\" to update what will be committed)\n>> #   (use \"git checkout -- <file>...\" to discard changes in working directory)\n>> #\n>> # modified:   models/CAFE.json ***Shouldn't appear\n>\n> The exclude mechanism does not mean \"do not ever look at this file\". It\n> means \"when you are adding untracked files, do not include this one\".\n> Somebody has already added the file to the repository before your\n> exclude was in place, so it is a tracked file.\n>\n> There is currently no official mechanism in git to do what you want\n> (there are some hacks, but they include many pitfalls).\n>\n> -Peff\n>\n>\n"}]}