On 15/03/2016 09:32, 惠轶群 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.

To sum up, I'd like to implement:

1. <path> is configured by --socket, then put it here.
2. else if `~/.git-credential-cache` exists, put the socket under here.
3. else, put the socket under
`$XDG_RUNTIME_DIR/git/credential-cache.sock`,
if $XDG_RUNTIME_DIR does not exist, default to
`/tmp/git-$UID/credential-cache.sock`.

As a result, new user will use xdg-compatible path while old user will not
be surprised.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Hi, I am Ivan Tham 谭俊浩, I know a bit of C and more in python, I am
currently taking foundation in a Asia Pacific University.

I would really like to work on this microproject for gsoc too but too bad
惠轶群 had taken it. :(

I think it should be in ~/$XDG_CACHE_HOME/git/credential or
~/.cache/git/credential instead of ~/.config/git/credential.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to