Re: [GSOC] Microproject "Move ~/.git-credential-cache to ~/.config/git"
- From
Jeff King <peff@peff.net>
- Date
- Mar 15, 2016, 03:13 UTC
- Message-ID
- <20160315031259.GA20508@sigill.intra.peff.net>
- In-Reply-To
- <CAKqreuw0hafi-GwWD-UaGKwmG8xVK6ZJDcw2jpQXAAuK+XBZvQ@mail.gmail.com>
On Tue, Mar 15, 2016 at 09:32:21AM +0800, 惠轶群 wrote:
> > You sound like you think it is better to check the location of the > > existing socket, > > Yes, for the purpose of compatibility, it's the only choice, as I can see.
I'm not sure the existing socket location matters, in the way that it does for config. The socket is inherently ephemeral, and designed to go away after a few minutes (and the program designed to run sanely when it does not exist).
So yes, when you switch from older git to newer git, you might technically have a cache-daemon running that you _could_ contact, but don't find it. But I don't think it's a big deal in practice, and not worth designing around.
So I think it would be OK to just switch the default path to wherever XDG recommends ephemeral stuff to go (which sounds like $XDG_RUNTIME_DIR) and be done.
-Peff