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

Re: [PATCH] gitk: expand $config_file_tmp before reporting to user

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 28, 2017, 22:03 UTC
Message-ID
<xmqqzi9ezdk4.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<alpine.DEB.2.21.1.1709281428170.40514@virtualbox>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 12 quoted lines
>> > Max Kirillov <max@max630.net> writes:
>> >
>> >> Tilda-based path may confise some users. First, tilda is not known
>> >> for Window users, second, it may point to unexpected location
>> >> depending on various environment setup.
> ...
> As familiar, as it is unfamiliar to Windows users.
>
> So I would actually suggest to make this a conditional on the platform: on
> Windows, use the native name, everywhere else, not.
>
> Sound good?
Not really.  

I agree with and (more importantly) consider the second rationale Max cites a more relevant one for this change.

This is about reporting an error, and using the short-hand ~/$rest that could be pointing at a location different from what the user _thinks_ it points at for whatever reason (miconfigured HOME, some intermediate process setting it to something else, etc.) can hide the real issue. The problem can be more easily noticed and diagnosed if the message shows the result of 'nativename'.

And that rationale holds whether you are seeing the error message on Windows or non-Windows.

Previous: Johannes SchindelinNext: Max Kirillov
Message 5 of 7 in “gitk: expand $config_file_tmp before reporting to user”
  1. gitk: expand $config_file_tmp before reporting to userMax Kirillov, Sep 28, 2017
  2. Junio C HamanoSep 28, 2017
  3. Junio C HamanoSep 28, 2017
  4. Johannes SchindelinSep 28, 2017
  5. Junio C HamanoSep 28, 2017
  6. Max KirillovSep 29, 2017
  7. Uxío PregoSep 29, 2017

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.