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

[PATCH] config.txt: move closing "----" to cover entire listing

From
MÅMartin Ågren <martin.agren@gmail.com>
Date
Apr 9, 2020, 10:35 UTC
Message-ID
<20200409103541.23743-1-martin.agren@gmail.com>

Commit 1925fe0c8a ("Documentation: wrap config listings in "----"", 2019-09-07) wrapped this fairly large block of example config directives in "----". The closing "----" ended up a few lines too early though. Make sure to include the trailing "IncludeIf.onbranch:..." example, too.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
---
 Not sure how I managed to botch this in 1925fe0c8a.
 Documentation/config.txt | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 2450589a0e..74009d5402 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -220,12 +220,12 @@ Example
 ; affected by the condition
 [includeIf "gitdir:/path/to/group/"]
 	path = foo.inc
-----
 
-	; include only if we are in a worktree where foo-branch is
-	; currently checked out
-	[includeIf "onbranch:foo-branch"]
-		path = foo.inc
+; include only if we are in a worktree where foo-branch is
+; currently checked out
+[includeIf "onbranch:foo-branch"]
+	path = foo.inc
+----
 
 Values
 ~~~~~~
-- 
2.26.0
Next: Jeff King
Message 1 of 5 in “config.txt: move closing "----" to cover entire listing”
  1. config.txt: move closing "----" to cover entire listingMartin Ågren, Apr 9, 2020
  2. Jeff KingApr 9, 2020
  3. Martin ÅgrenApr 9, 2020
  4. Jeff KingApr 9, 2020
  5. Martin ÅgrenApr 10, 2020

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.