{"thread":{"id":"31324","subject":"Git to use XDG Base Directory Standard","startedAt":"2012-08-22T21:33:56Z","lastAt":"2012-08-23T07:22:36Z","messageCount":4,"participants":["Lanoxx","Carlos Martín Nieto","David Aguilar"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"197666","messageId":"50355044.7040201@gmx.net","threadId":"31324","inReplyTo":null,"subject":"Git to use XDG Base Directory Standard","fromName":"Lanoxx","fromEmail":"lanoxx@gmx.net","sentAt":"2012-08-22T21:33:56Z","receivedAt":"2012-08-22T21:33:56Z","isPatch":false,"sender":{"key":"lanoxx@gmx.net","avatar":null},"body":"Hi,\n\nGit and Gitk are currently using the ~/.gitconfig and ~/.gitk files in \nthe $HOME directory. It would be nice to use the XDG Base Directory \nstandard for the location instead, see [1] and [2]. Are there any plans \nregarding this standard?\n\nBest Regards\nLanoxx\n\n[1] http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html\n[2] https://live.gnome.org/GnomeGoals/XDGConfigFolders\n"},{"id":"197667","messageId":"871uiy8uuw.fsf@centaur.cmartin.tk","threadId":"31324","inReplyTo":"50355044.7040201@gmx.net","subject":"Re: Git to use XDG Base Directory Standard","fromName":"Carlos Martín Nieto","fromEmail":"cmn@elego.de","sentAt":"2012-08-22T21:44:39Z","receivedAt":"2012-08-22T21:44:39Z","isPatch":false,"sender":{"key":"cmn@elego.de","avatar":"https://avatars.githubusercontent.com/u/335443?v=4"},"body":"Lanoxx <lanoxx@gmx.net> writes:\n\n> Hi,\n>\n> Git and Gitk are currently using the ~/.gitconfig and ~/.gitk files in\n> the $HOME directory. It would be nice to use the XDG Base Directory\n> standard for the location instead, see [1] and [2]. Are there any\n> plans regarding this standard?\n\nGit does this starting at 1.7.12. See the release notes, e.g. at\nhttps://github.com/git/git/blob/master/Documentation/RelNotes/1.7.12.txt#L18-23\n\n   cmn\n"},{"id":"197673","messageId":"CAJDDKr6Jh0c9W1coQLOqrQKW-X7CCF9t_Nr2pW-7ivh0Ae9xrw@mail.gmail.com","threadId":"31324","inReplyTo":"871uiy8uuw.fsf@centaur.cmartin.tk","subject":"Re: Git to use XDG Base Directory Standard","fromName":"David Aguilar","fromEmail":"davvid@gmail.com","sentAt":"2012-08-23T02:57:16Z","receivedAt":"2012-08-23T02:57:16Z","isPatch":false,"sender":{"key":"davvid@gmail.com","avatar":"https://avatars.githubusercontent.com/u/13196?v=4"},"body":"On Wed, Aug 22, 2012 at 2:44 PM, Carlos Martín Nieto <cmn@elego.de> wrote:\n> Lanoxx <lanoxx@gmx.net> writes:\n>\n>> Hi,\n>>\n>> Git and Gitk are currently using the ~/.gitconfig and ~/.gitk files in\n>> the $HOME directory. It would be nice to use the XDG Base Directory\n>> standard for the location instead, see [1] and [2]. Are there any\n>> plans regarding this standard?\n>\n> Git does this starting at 1.7.12. See the release notes, e.g. at\n> https://github.com/git/git/blob/master/Documentation/RelNotes/1.7.12.txt#L18-23\n>\n>    cmn\n\nI do not recall whether gitk learned about it (I don't think so).\n\nLike all big sweeping changes, these were done in a\nbackwards-compatible way that will allow users to switch over when\nthey are ready.  If you are interested in attacking this from the gitk\nangle then you will want to follow a similar strategy.\n-- \nDavid\n"},{"id":"197678","messageId":"5035DA3C.4030404@gmx.net","threadId":"31324","inReplyTo":"CAJDDKr6Jh0c9W1coQLOqrQKW-X7CCF9t_Nr2pW-7ivh0Ae9xrw@mail.gmail.com","subject":"Re: Git to use XDG Base Directory Standard","fromName":"Lanoxx","fromEmail":"lanoxx@gmx.net","sentAt":"2012-08-23T07:22:36Z","receivedAt":"2012-08-23T07:22:36Z","isPatch":false,"sender":{"key":"lanoxx@gmx.net","avatar":null},"body":"\nOn 23/08/12 04:57, David Aguilar wrote:\n> On Wed, Aug 22, 2012 at 2:44 PM, Carlos Martín Nieto <cmn@elego.de> wrote:\n>> Lanoxx <lanoxx@gmx.net> writes:\n>>\n>>> Hi,\n>>>\n>>> Git and Gitk are currently using the ~/.gitconfig and ~/.gitk files in\n>>> the $HOME directory. It would be nice to use the XDG Base Directory\n>>> standard for the location instead, see [1] and [2]. Are there any\n>>> plans regarding this standard?\n>> Git does this starting at 1.7.12. See the release notes, e.g. at\n>> https://github.com/git/git/blob/master/Documentation/RelNotes/1.7.12.txt#L18-23\n>>\n>>     cmn\n> I do not recall whether gitk learned about it (I don't think so).\n>\n> Like all big sweeping changes, these were done in a\n> backwards-compatible way that will allow users to switch over when\n> they are ready.  If you are interested in attacking this from the gitk\n> angle then you will want to follow a similar strategy.\n\nI just checked it, the code is in \nhttps://github.com/git/git/blob/master/gitk-git/gitk:2710 and following. \nCurrently it still saves it to ~/.gitk-new and then renames it to ~/.gitk\n\nUnfortunately I do not know Tcl/Tk so I can't provide a patch. But if \nsomeone could provide a patch that would be really nice.\n"}]}