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

[PATCH] gitignore.txt: fix slash-rules example

From
TGTimofey Vasenin via GitGitGadget <gitgitgadget@gmail.com>
Date
May 14, 2024, 16:53 UTC
Message-ID
<pull.1720.git.git.1715705582609.gitgitgadget@gmail.com>
From: Timofey Vasenin <timofey.vasenin@gmail.com>

Fix an apparent typo, introduced in: 1a58bad014 (gitignore.txt: make slash-rules more readable, 2019-06-04)

Reported-by: Andrey Strizhkin <astrizhkin@biarum.com>
Signed-off-by: Timofey Vasenin <timofey.vasenin@gmail.com>
---
    gitignore.txt: fix slash-rules example
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-1720%2Ftvasenin%2Ftvasenin%2Fgitignore-slash-rules-example-fix-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-1720/tvasenin/tvasenin/gitignore-slash-rules-example-fix-v1
Pull-Request: https://github.com/git/git/pull/1720
 Documentation/gitignore.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/gitignore.txt b/Documentation/gitignore.txt
index 5e0964ef419..7142fa10acc 100644
--- a/Documentation/gitignore.txt
+++ b/Documentation/gitignore.txt
@@ -100,7 +100,7 @@ PATTERN FORMAT
    will only match directories, otherwise the pattern can match both
    files and directories.
 
- - For example, a pattern `doc/frotz/` matches `doc/frotz` directory,
+ - For example, a pattern `/doc/frotz/` matches `doc/frotz` directory,
    but not `a/doc/frotz` directory; however `frotz/` matches `frotz`
    and `a/frotz` that is a directory (all paths are relative from
    the `.gitignore` file).

base-commit: 3e4a232f6e3bd3b7dd920bb07b21cf1c8b4e1a7f
-- 
gitgitgadget
Next: Junio C Hamano
Message 1 of 2 in “gitignore.txt: fix slash-rules example”
  1. gitignore.txt: fix slash-rules exampleTimofey Vasenin via GitGitGadget, May 14, 2024
  2. Junio C HamanoMay 14, 2024

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.