[PATCH v2/GSoC 2/4] path.c: implement xdg_runtime_dir()

2016-03-20 Thread Hui Yiqun
this function does the following: 1. if $XDG_RUNTIME_DIR is non-empty, `$XDG_RUNTIME_DIR/git` is used in next step, otherwise `/tmp/git-$uid` is taken. 2. ensure that above directory does exist. what's more, it must has correct permission and ownership. 3. a newly allocated string consisting of th

Re: [PATCH v2/GSoC 2/4] path.c: implement xdg_runtime_dir()

2016-03-19 Thread Jeff King
On Fri, Mar 18, 2016 at 12:48:44AM +0800, Hui Yiqun wrote: > this function does the following: > > 1. if $XDG_RUNTIME_DIR is non-empty, `$XDG_RUNTIME_DIR/git` is used in next > step, otherwise `/tmp/git-$uid` is taken. > 2. ensure that above directory does exist. what's more, it must has correct