{"thread":{"id":"59998","subject":"[PATCH] gitignore.txt: use backticks instead of double quotes","startedAt":"2023-07-18T13:13:12Z","lastAt":"2023-07-18T13:53:16Z","messageCount":2,"participants":["jr via GitGitGadget","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"479596","messageId":"pull.1553.git.git.1689685982027.gitgitgadget@gmail.com","threadId":"59998","inReplyTo":null,"subject":"[PATCH] gitignore.txt: use backticks instead of double quotes","fromName":"jr via GitGitGadget","fromEmail":"gitgitgadget@gmail.com","sentAt":"2023-07-18T13:13:01Z","receivedAt":"2023-07-18T13:13:12Z","isPatch":true,"sender":{"key":"name:jr","avatar":null},"body":"From: Johan Ruokangas <johan@latehours.net>\n\nunifies highlighting with the rest of the documentation\n\nSigned-off-by: Johan Ruokangas <johan@latehours.net>\n---\n    gitignore.txt: use backticks instead of double quotes\n\nPublished-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-1553%2Fjozan%2Fbackticks-gitignore-doc-v1\nFetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-1553/jozan/backticks-gitignore-doc-v1\nPull-Request: https://github.com/git/git/pull/1553\n\n Documentation/gitignore.txt | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/Documentation/gitignore.txt b/Documentation/gitignore.txt\nindex 4c17f2356c4..810041acd17 100644\n--- a/Documentation/gitignore.txt\n+++ b/Documentation/gitignore.txt\n@@ -174,10 +174,10 @@ EXAMPLES\n    is not relevant  if there is already a middle slash in\n    the pattern.\n \n- - The pattern \"foo/*\", matches \"foo/test.json\"\n-   (a regular file), \"foo/bar\" (a directory), but it does not match\n-   \"foo/bar/hello.c\" (a regular file), as the asterisk in the\n-   pattern does not match \"bar/hello.c\" which has a slash in it.\n+ - The pattern `foo/*`, matches `foo/test.json`\n+   (a regular file), `foo/bar` (a directory), but it does not match\n+   `foo/bar/hello.c` (a regular file), as the asterisk in the\n+   pattern does not match `bar/hello.c` which has a slash in it.\n \n --------------------------------------------------------------\n     $ git status\n\nbase-commit: 5e238546dc7a232d8998f1cd1ec9d3f4a0add68b\n-- \ngitgitgadget\n"},{"id":"479598","messageId":"xmqqlefdiaws.fsf@gitster.g","threadId":"59998","inReplyTo":"pull.1553.git.git.1689685982027.gitgitgadget@gmail.com","subject":"Re: [PATCH] gitignore.txt: use backticks instead of double quotes","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2023-07-18T13:53:07Z","receivedAt":"2023-07-18T13:53:16Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"jr via GitGitGadget\" <gitgitgadget@gmail.com> writes:\n\n> From: Johan Ruokangas <johan@latehours.net>\n>\n> unifies highlighting with the rest of the documentation\n\nI find \"The rest of the documentation\" is a bit of overstatement,\nbut something like\n\n    Among four examples, only this one used \"double quoted\" sample\n    patterns, but all others marked up the patterns in `monospace`.\n\nwould be a good justification.  The change is good.\n\nA change in the same vein elsewhere in the same document ...\n\ndiff --git i/Documentation/gitignore.txt w/Documentation/gitignore.txt\nindex 4c17f2356c..bf2d823c94 100644\n--- i/Documentation/gitignore.txt\n+++ w/Documentation/gitignore.txt\n@@ -88,7 +88,7 @@ PATTERN FORMAT\n    Put a backslash (\"`\\`\") in front of the first \"`!`\" for patterns\n    that begin with a literal \"`!`\", for example, \"`\\!important!.txt`\".\n \n- - The slash '/' is used as the directory separator. Separators may\n+ - The slash \"`/`\" is used as the directory separator. Separators may\n    occur at the beginning, middle or end of the `.gitignore` search pattern.\n \n  - If there is a separator at the beginning or middle (or both) of the\n\n... would be sufficient to make the PATTERN FORMAT section\nconsistent, I think.\n\n> Signed-off-by: Johan Ruokangas <johan@latehours.net>\n\nThanks, will queue.\n\n> diff --git a/Documentation/gitignore.txt b/Documentation/gitignore.txt\n> index 4c17f2356c4..810041acd17 100644\n> --- a/Documentation/gitignore.txt\n> +++ b/Documentation/gitignore.txt\n> @@ -174,10 +174,10 @@ EXAMPLES\n>     is not relevant  if there is already a middle slash in\n>     the pattern.\n>  \n> - - The pattern \"foo/*\", matches \"foo/test.json\"\n> -   (a regular file), \"foo/bar\" (a directory), but it does not match\n> -   \"foo/bar/hello.c\" (a regular file), as the asterisk in the\n> -   pattern does not match \"bar/hello.c\" which has a slash in it.\n> + - The pattern `foo/*`, matches `foo/test.json`\n> +   (a regular file), `foo/bar` (a directory), but it does not match\n> +   `foo/bar/hello.c` (a regular file), as the asterisk in the\n> +   pattern does not match `bar/hello.c` which has a slash in it.\n>  \n>  --------------------------------------------------------------\n>      $ git status\n>\n> base-commit: 5e238546dc7a232d8998f1cd1ec9d3f4a0add68b\n"}]}