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

[PATCH] git-stash.txt: remove extra square bracket

From
Thomas Gummerer <t.gummerer@gmail.com>
Date
Mar 26, 2018, 21:11 UTC
Message-ID
<20180326211147.25846-1-t.gummerer@gmail.com>

In 1ada5020b3 ("stash: use stash_push for no verb form", 2017-02-28), when the pathspec argument was introduced in 'git stash', that was also documented. However I forgot to remove an extra square bracket after the '--message' argument, even though the square bracket should have been after the pathspec argument (where it was also added).

Remove the extra square bracket after the '--message' argument, to show that the pathspec argument should be used with the 'push' verb.

While the pathspec argument can be used without the push verb, that's a special case described later in the man page, and removing the first extra square bracket instead of the second one makes the synopis easier to understand.

Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
---
 Documentation/git-stash.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/git-stash.txt b/Documentation/git-stash.txt
index 056dfb8661..7ef8c47911 100644
--- a/Documentation/git-stash.txt
+++ b/Documentation/git-stash.txt
@@ -14,7 +14,7 @@ SYNOPSIS
 'git stash' ( pop | apply ) [--index] [-q|--quiet] [<stash>]
 'git stash' branch <branchname> [<stash>]
 'git stash' [push [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet]
-	     [-u|--include-untracked] [-a|--all] [-m|--message <message>]]
+	     [-u|--include-untracked] [-a|--all] [-m|--message <message>]
 	     [--] [<pathspec>...]]
 'git stash' clear
 'git stash' create [<message>]
-- 
2.17.0.rc1.35.g90bbd502d5.dirty
Message 1 of 1 in “git-stash.txt: remove extra square bracket”
  1. git-stash.txt: remove extra square bracketThomas Gummerer, Mar 26, 2018

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.