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

Re: [PATCH] doc: fix formatting of function-wrap shell alias

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 2, 2025, 16:24 UTC
Message-ID
<xmqqh5xklt5r.fsf@gitster.g>
In-Reply-To
<2796730.mvXUDI8C0e@cayenne>
Jean-Noël AVILA <jn.avila@free.fr> writes:
Show 28 quoted lines
> On Monday, 1 September 2025 20:04:18 CEST Kyle E. Mitchell wrote:
>> Add a missed backtick to the end of a code segment so that it will be
>> rendered like preceding examples.
>> 
>> I deeply appreciate the thoroughness of this documentation.  I noticed
>> the formatting discrepancy reading https://git-scm.com/docs/git-config.
>> 
>> Signed-off-by: Kyle E. Mitchell <kyle@kemitchell.com>
>> ---
>>  Documentation/config/alias.adoc | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>> 
>> diff --git a/Documentation/config/alias.adoc b/Documentation/config/
> alias.adoc
>> index 2c5db0ad84..95825354bf 100644
>> --- a/Documentation/config/alias.adoc
>> +++ b/Documentation/config/alias.adoc
>> @@ -38,6 +38,6 @@ it will be treated as a shell command.  For example, 
> defining
>>  ** A convenient way to deal with this is to write your script
>>     operations in an inline function that is then called with any
>>     arguments from the command-line.  For example `alias.cmd = "!c() {
>> -   echo $1 | grep $2 ; }; c" will correctly execute the prior example.
>> +   echo $1 | grep $2 ; }; c"` will correctly execute the prior example.
>>  ** Setting `GIT_TRACE=1` can help you debug the command being run for
>>     your alias.
>
> Obviously correct.
Thanks, both of you.
Previous: Jean-Noël AVILA
Message 3 of 3 in “doc: fix formatting of function-wrap shell alias”
  1. doc: fix formatting of function-wrap shell aliasKyle E. Mitchell, Sep 1, 2025
  2. Jean-Noël AVILASep 1, 2025
  3. Junio C HamanoSep 2, 2025

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.