Re: [GSOC] Microproject "Move ~/.git-credential-cache to ~/.config/git"

2016-03-16 Thread 惠轶群
2016-03-16 3:21 GMT+08:00 Jeff King : > I don't think so. I suppose one could have a script that tests for the > existence of the socket or something. I agree, that is what I meant by "third-party tools". But for user who write script like that, it's easy to figure out the problem and either upda

Re: [GSOC] Microproject "Move ~/.git-credential-cache to ~/.config/git"

2016-03-15 Thread Jeff King
On Tue, Mar 15, 2016 at 05:48:18AM +, 惠轶群 wrote: > On Tue, Mar 15, 2016, 11:13 AM Jeff King wrote: > > 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). > > I agree. > > > So yes, when you

Re: [GSOC] Microproject "Move ~/.git-credential-cache to ~/.config/git"

2016-03-14 Thread Ivan Tham
On 15/03/2016 10:59, 惠轶群 wrote: Well, In my opinion: 1. $XDG_CACHE_HOME is more meaningful than $XDG_CONFIG_HOME, while $XDG_RUNTIME_DIR is more meaningful than $XDG_CACHE_HOME. However, I feel that I should value suggestions of who have more experience about this project than me. 2. $XDG_CAC

Re: [GSOC] Microproject "Move ~/.git-credential-cache to ~/.config/git"

2016-03-14 Thread Jeff King
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 do

Re: [GSOC] Microproject "Move ~/.git-credential-cache to ~/.config/git"

2016-03-14 Thread Your friend
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. is configured by --socket, then put it here. 2. else if `~/.gi

Re: [GSOC] Microproject "Move ~/.git-credential-cache to ~/.config/git"

2016-03-14 Thread 惠轶群
> 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. is configured by --socket, then put it here. 2. else if `~/.git-credential-cache` exists, put t

Re: [GSOC] Microproject "Move ~/.git-credential-cache to ~/.config/git"

2016-03-14 Thread Junio C Hamano
惠轶群 writes: > After reading the > [spec](https://specifications.freedesktop.org/basedir-spec/basedir-spec-0.7.html) > more carefully, I think that $XDG_RUNTIME_DIR may be a better choice than > the above two. For ~/.git-credential-cache/socket is a unix socket and should > be used only runtime.

Re: [GSOC] Microproject "Move ~/.git-credential-cache to ~/.config/git"

2016-03-14 Thread 惠轶群
2016-03-14 23:42 GMT+08:00 Junio C Hamano : > 惠轶群 writes: > >> I'm still confused about following: >> >> 1. should `~/.git-credential-cache` been moved to >> `~/.cache/git/credential`(as the descreption of the micropject says) >> or `~/.config/git/credential`(as the title of the microproject says)

Re: [GSOC] Microproject "Move ~/.git-credential-cache to ~/.config/git"

2016-03-14 Thread Junio C Hamano
惠轶群 writes: > I'm still confused about following: > > 1. should `~/.git-credential-cache` been moved to > `~/.cache/git/credential`(as the descreption of the micropject says) > or `~/.config/git/credential`(as the title of the microproject says)? The latter, I'd think, as you noticed in 2. the f

[GSOC] Microproject "Move ~/.git-credential-cache to ~/.config/git"

2016-03-14 Thread 惠轶群
I'm Hui Yiqun, a master degress candidate of Tsinghua University. I'd like to participate GSOC 2016 as an developer of git. I have basic knowledge about several programming languages (namely C, python, go and etc.), compilers and cmake which may help my development. My github page is at [here](ht