git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
AHAstril Hayato <astrilhayato@gmail.com>
Date
Jan 21, 2014, 17:40 UTC
Message-ID
<CAFysofbwxb23or25vqh_JFLNU7Ksm9ch=YnvaFggPvdU_x2T7A@mail.gmail.com>
In-Reply-To
<20140121111041.GC8265@iris.ozlabs.ibm.com>
On Tue, Jan 21, 2014 at 11:10 AM, Paul Mackerras <paulus@samba.org> wrote:
Show 8 quoted lines
>> +    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 exists
>> +     if {[file exists "~/.gitk"]} {set config_file "~/.gitk"}
>
> Don't we need to set config_file_tmp here too?
Yeah it's probably best to keep the two files together.
>
> And, do we really want to create the ~/.config/git directory if we are
> using the old-style ~/.gitk as the config file?
Probably not. I'll prepare a new patch restoring the old behaviour.

Regards, Astril.

Previous: Paul Mackerras
Message 3 of 3 in “gitk: Comply with XDG base directory specification”
  1. gitk: Comply with XDG base directory specificationAstril Hayato, Dec 13, 2013
  2. Paul MackerrasJan 21, 2014
  3. Astril HayatoJan 21, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.