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

Re: [PATCH v2] Documentation/git-config.txt: reword missleading sentence

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 13, 2017, 12:04 UTC
Message-ID
<xmqqvajjuudo.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<q7h9infjmos9.fsf@orange.lip.ens-lyon.fr>
Moy Matthieu <Matthieu.Moy@univ-lyon1.fr> writes:
Show 8 quoted lines
>>>  --path::
>>> -	'git-config' will expand leading '{tilde}' to the value of
>>> +	'git config' will expand leading '{tilde}' to the value of
>>>  	'$HOME', and '{tilde}user' to the home directory for the
>
> Didn't notice yesterday, but you still have forward quotes here and
> backquotes right below. If you are to fix this paragraph, better fix all
> issues at once.

When we say ~user in this sentence, unlike $HOME, it is not something the user would type literally; 'user' in that is a placeholder to be replaced with a value appropriate in the real life, e.g. ~moy. So '{tilde}user' may actually be OK, even though I agree that `$HOME` may be more correct.

Show 12 quoted lines
>>>  	specified user.  This option has no effect when setting the
>>> -	value (but you can use 'git config bla {tilde}/' from the
>>> -	command line to let your shell do the expansion).
>>> +	value (but you can use `git config section.variable {tilde}/`
>>
>> Does this reference to {tilde} get expanded inside the `literal`
>> mark-up?  ...
>
> If I read correctly, the potential issue with ~ is that it's used for
> subscript text (i.e. foo~bar~ in asciidoc is LaTeX's $foo_{bar}$). But ~
> within a literal string should be safe, and at least we use it in many
> places in our doc.

My comment was not about "safety" but about correctness. At least for me, `{tilde}user` does not expand to ~user, but instead spell out open-brace, tee, eye, ..., close-brace, followed by "user", which is not what we want.

Previous: Moy MatthieuNext: PAYRE NATHAN p1508475
Message 8 of 11 in “Documentation/git-config.txt: reword missleading sentence”
  1. Documentation/git-config.txt: reword missleading sentencePAYRE NATHAN p1508475, Oct 5, 2017
  2. Junio C HamanoOct 5, 2017
  3. Nathan PAYREOct 10, 2017
  4. Junio C HamanoOct 10, 2017
  5. Documentation/git-config.txt: reword missleading sentencesecond.payre@gmail.com, Oct 12, 2017
  6. Junio C HamanoOct 13, 2017
  7. Moy MatthieuOct 13, 2017
  8. Junio C HamanoOct 13, 2017
  9. Documentation/git-config.txt: reword missleading sentencePAYRE NATHAN p1508475, Oct 18, 2017
  10. Jonathan NiederOct 18, 2017
  11. Junio C HamanoOct 19, 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.