git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Specifying excludesfile in a portable way?
@ 2009-12-24  3:45 Fyn Fynn
  2009-12-24  5:53 ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Fyn Fynn @ 2009-12-24  3:45 UTC (permalink / raw)
  To: git

I have specify an excludesfile in my ~/.gitconfig:

  [core]
      excludesfile = /Users/fynn/.gitexcludes

This works fine for my OS X workstation. But when I sync this
.gitconfig to our Linux server, the excludesfile is ignored because my
home directory there is /home/fynn.

Is there a way to specify that in a portable way?  I tried both
~/.gitexcludes and $HOME/.gitexcludes; neither worked on any platform.

git version on both platforms is 1.6.4

Thanks,
Fynn

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Specifying excludesfile in a portable way?
  2009-12-24  3:45 Specifying excludesfile in a portable way? Fyn Fynn
@ 2009-12-24  5:53 ` Jeff King
  2009-12-24  7:14   ` Fyn Fynn
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff King @ 2009-12-24  5:53 UTC (permalink / raw)
  To: Fyn Fynn; +Cc: git

On Wed, Dec 23, 2009 at 07:45:14PM -0800, Fyn Fynn wrote:

> Is there a way to specify that in a portable way?  I tried both
> ~/.gitexcludes and $HOME/.gitexcludes; neither worked on any platform.
> 
> git version on both platforms is 1.6.4

Not in v1.6.4, but you can use "~/.gitexcludes" in v1.6.6 (which was
just released today).

-Peff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Specifying excludesfile in a portable way?
  2009-12-24  5:53 ` Jeff King
@ 2009-12-24  7:14   ` Fyn Fynn
  2009-12-24  7:36     ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Fyn Fynn @ 2009-12-24  7:14 UTC (permalink / raw)
  To: Jeff King; +Cc: git

On Wed, Dec 23, 2009 at 9:53 PM, Jeff King <peff@peff.net> wrote:
> Not in v1.6.4, but you can use "~/.gitexcludes" in v1.6.6 (which was
> just released today).

That's great to hear!  But since it can take some time to update git
on all machines, is there an alternative for now, e.g. a way to
specify all those exclusions in .gitconfig itself?

> -Peff
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Specifying excludesfile in a portable way?
  2009-12-24  7:14   ` Fyn Fynn
@ 2009-12-24  7:36     ` Jeff King
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff King @ 2009-12-24  7:36 UTC (permalink / raw)
  To: Fyn Fynn; +Cc: git

On Wed, Dec 23, 2009 at 11:14:10PM -0800, Fyn Fynn wrote:

> On Wed, Dec 23, 2009 at 9:53 PM, Jeff King <peff@peff.net> wrote:
> > Not in v1.6.4, but you can use "~/.gitexcludes" in v1.6.6 (which was
> > just released today).
> 
> That's great to hear!  But since it can take some time to update git
> on all machines, is there an alternative for now, e.g. a way to
> specify all those exclusions in .gitconfig itself?

No, I don't think there is another way to specify excludes in the config
file directly.

-Peff

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-12-24  7:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-24  3:45 Specifying excludesfile in a portable way? Fyn Fynn
2009-12-24  5:53 ` Jeff King
2009-12-24  7:14   ` Fyn Fynn
2009-12-24  7:36     ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).