{"thread":{"id":"22021","subject":"Specifying excludesfile in a portable way?","startedAt":"2009-12-24T03:45:14Z","lastAt":"2009-12-24T07:36:06Z","messageCount":4,"participants":["Fyn Fynn","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"130297","messageId":"1a04eebf0912231945l3235bc4dpdd8c541feef9bdd3@mail.gmail.com","threadId":"22021","inReplyTo":null,"subject":"Specifying excludesfile in a portable way?","fromName":"Fyn Fynn","fromEmail":"fynfynn@gmail.com","sentAt":"2009-12-24T03:45:14Z","receivedAt":"2009-12-24T03:45:14Z","isPatch":false,"sender":{"key":"fynfynn@gmail.com","avatar":null},"body":"I have specify an excludesfile in my ~/.gitconfig:\n\n  [core]\n      excludesfile = /Users/fynn/.gitexcludes\n\nThis works fine for my OS X workstation. But when I sync this\n.gitconfig to our Linux server, the excludesfile is ignored because my\nhome directory there is /home/fynn.\n\nIs there a way to specify that in a portable way?  I tried both\n~/.gitexcludes and $HOME/.gitexcludes; neither worked on any platform.\n\ngit version on both platforms is 1.6.4\n\nThanks,\nFynn\n"},{"id":"130299","messageId":"20091224055350.GB419@sigill.intra.peff.net","threadId":"22021","inReplyTo":"1a04eebf0912231945l3235bc4dpdd8c541feef9bdd3@mail.gmail.com","subject":"Re: Specifying excludesfile in a portable way?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2009-12-24T05:53:50Z","receivedAt":"2009-12-24T05:53:50Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Dec 23, 2009 at 07:45:14PM -0800, Fyn Fynn wrote:\n\n> Is there a way to specify that in a portable way?  I tried both\n> ~/.gitexcludes and $HOME/.gitexcludes; neither worked on any platform.\n> \n> git version on both platforms is 1.6.4\n\nNot in v1.6.4, but you can use \"~/.gitexcludes\" in v1.6.6 (which was\njust released today).\n\n-Peff\n"},{"id":"130300","messageId":"1a04eebf0912232314y5dcbdfa7w4adea2eb617e0992@mail.gmail.com","threadId":"22021","inReplyTo":"20091224055350.GB419@sigill.intra.peff.net","subject":"Re: Specifying excludesfile in a portable way?","fromName":"Fyn Fynn","fromEmail":"fynfynn@gmail.com","sentAt":"2009-12-24T07:14:10Z","receivedAt":"2009-12-24T07:14:10Z","isPatch":false,"sender":{"key":"fynfynn@gmail.com","avatar":null},"body":"On Wed, Dec 23, 2009 at 9:53 PM, Jeff King <peff@peff.net> wrote:\n> Not in v1.6.4, but you can use \"~/.gitexcludes\" in v1.6.6 (which was\n> just released today).\n\nThat's great to hear!  But since it can take some time to update git\non all machines, is there an alternative for now, e.g. a way to\nspecify all those exclusions in .gitconfig itself?\n\n> -Peff\n>\n"},{"id":"130301","messageId":"20091224073549.GA5893@sigill.intra.peff.net","threadId":"22021","inReplyTo":"1a04eebf0912232314y5dcbdfa7w4adea2eb617e0992@mail.gmail.com","subject":"Re: Specifying excludesfile in a portable way?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2009-12-24T07:36:06Z","receivedAt":"2009-12-24T07:36:06Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Dec 23, 2009 at 11:14:10PM -0800, Fyn Fynn wrote:\n\n> On Wed, Dec 23, 2009 at 9:53 PM, Jeff King <peff@peff.net> wrote:\n> > Not in v1.6.4, but you can use \"~/.gitexcludes\" in v1.6.6 (which was\n> > just released today).\n> \n> That's great to hear!  But since it can take some time to update git\n> on all machines, is there an alternative for now, e.g. a way to\n> specify all those exclusions in .gitconfig itself?\n\nNo, I don't think there is another way to specify excludes in the config\nfile directly.\n\n-Peff\n"}]}