Re: [PATCH] gitk: Comply with XDG base directory specification

2014-01-21 Thread Paul Mackerras
On Fri, Dec 13, 2013 at 07:46:36PM +, Astril Hayato wrote: Write the gitk config data to $XDG_CONFIG_HOME/git/gitk ($HOME/.config/git/gitk by default) in line with the XDG specification. This makes it consistent with git which also follows the spec. If $HOME/.gitk already exists use

Re: [PATCH] gitk: Comply with XDG base directory specification

2014-01-21 Thread Astril Hayato
On Tue, Jan 21, 2014 at 11:10 AM, Paul Mackerras pau...@samba.org wrote: +if {![file exists $config_file]} { + if {![file exists [file dirname $config_file]]} { + file mkdir [file dirname $config_file] + } + # for backward compatability use the old config file if it

[PATCH] gitk: Comply with XDG base directory specification

2013-12-13 Thread Astril Hayato
Write the gitk config data to $XDG_CONFIG_HOME/git/gitk ($HOME/.config/git/gitk by default) in line with the XDG specification. This makes it consistent with git which also follows the spec. If $HOME/.gitk already exists use that for backward compatibility, so only new installations are affected.