Re: Git to use XDG Base Directory Standard

3 messages, 3 authors, 2016-06-15 · open the first message on its own page

Re: Git to use XDG Base Directory Standard

From: Carlos Martín Nieto <hidden>
Date: 2016-06-15 22:54:33

Lanoxx [off-list ref] writes:
Hi,

Git and Gitk are currently using the ~/.gitconfig and ~/.gitk files in
the $HOME directory. It would be nice to use the XDG Base Directory
standard for the location instead, see [1] and [2]. Are there any
plans regarding this standard?
Git does this starting at 1.7.12. See the release notes, e.g. at
https://github.com/git/git/blob/master/Documentation/RelNotes/1.7.12.txt#L18-23

   cmn

Re: Git to use XDG Base Directory Standard

From: David Aguilar <hidden>
Date: 2016-06-15 22:54:33

On Wed, Aug 22, 2012 at 2:44 PM, Carlos Martín Nieto [off-list ref] wrote:
Lanoxx [off-list ref] writes:
quoted
Hi,

Git and Gitk are currently using the ~/.gitconfig and ~/.gitk files in
the $HOME directory. It would be nice to use the XDG Base Directory
standard for the location instead, see [1] and [2]. Are there any
plans regarding this standard?
Git does this starting at 1.7.12. See the release notes, e.g. at
https://github.com/git/git/blob/master/Documentation/RelNotes/1.7.12.txt#L18-23

   cmn
I do not recall whether gitk learned about it (I don't think so).

Like all big sweeping changes, these were done in a
backwards-compatible way that will allow users to switch over when
they are ready.  If you are interested in attacking this from the gitk
angle then you will want to follow a similar strategy.
-- 
David

Re: Git to use XDG Base Directory Standard

From: Lanoxx <hidden>
Date: 2016-06-15 22:54:33

On 23/08/12 04:57, David Aguilar wrote:
On Wed, Aug 22, 2012 at 2:44 PM, Carlos Martín Nieto [off-list ref] wrote:
quoted
Lanoxx [off-list ref] writes:
quoted
Hi,

Git and Gitk are currently using the ~/.gitconfig and ~/.gitk files in
the $HOME directory. It would be nice to use the XDG Base Directory
standard for the location instead, see [1] and [2]. Are there any
plans regarding this standard?
Git does this starting at 1.7.12. See the release notes, e.g. at
https://github.com/git/git/blob/master/Documentation/RelNotes/1.7.12.txt#L18-23

    cmn
I do not recall whether gitk learned about it (I don't think so).

Like all big sweeping changes, these were done in a
backwards-compatible way that will allow users to switch over when
they are ready.  If you are interested in attacking this from the gitk
angle then you will want to follow a similar strategy.
I just checked it, the code is in 
https://github.com/git/git/blob/master/gitk-git/gitk:2710 and following. 
Currently it still saves it to ~/.gitk-new and then renames it to ~/.gitk

Unfortunately I do not know Tcl/Tk so I can't provide a patch. But if 
someone could provide a patch that would be really nice.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help