Skip to contentSkip to conversation

doc: fix formatting of function-wrap shell alias

PATCH In review Kyle E. Mitchell 3 participants 3 messages Sep 1, 2025 – Sep 2, 2025 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: fix formatting of function-wrap shell alias

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.

---
 Documentation/config/alias.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/config/alias.adoc +1 -1
index 2c5db0ad84..95825354bf 100644
@@ -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.
Signature · 1 line
2.51.0
#1 lore raw

Documentation/config/

Quoted 12 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.

---
 Documentation/config/alias.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/config/ renamed from Documentation/config/alias.adoc +0 -0

alias.adoc

Documentation/config/alias.adoc it will be treated as a shell command. For example,

Quoted 4 lines

index 2c5db0ad84..95825354bf 100644

Documentation/config/alias.adoc +0 -0
@@ -38,6 +38,6 @@ it will be treated as a shell command.  For example, 

defining

Documentation/config/alias.adoc it will be treated as a shell command. For example, defining · line 43

Quoted 7 lines
Documentation/config/alias.adoc +1 -1
 ** 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!

#2 lore raw
Quoted 27 lines · Jean-Noël AVILA

Documentation/config/

Quoted 12 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.

---
 Documentation/config/alias.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/config/ renamed from Documentation/config/alias.adoc +0 -0

alias.adoc

Documentation/config/alias.adoc it will be treated as a shell command. For example,

Quoted 4 lines

index 2c5db0ad84..95825354bf 100644

Documentation/config/alias.adoc +0 -0
@@ -38,6 +38,6 @@ it will be treated as a shell command.  For example, 

defining

Documentation/config/alias.adoc it will be treated as a shell command. For example, defining · line 43

Quoted 7 lines
Documentation/config/alias.adoc +1 -1
 ** 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.
Quoted 1 line

Obviously correct.

Thanks, both of you.