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

[PATCH/RFC 1/2] describe: mention glob in the --matches help text

From
MBMostyn Bramley-Moore <mostynb@opera.com>
Date
Dec 27, 2015, 22:59 UTC
Message-ID
<1451257192-5755-2-git-send-email-mostynb@opera.com>
In-Reply-To
<1451257192-5755-1-git-send-email-mostynb@opera.com>

This saves the user from needing to consult to manpage to learn the format of the --matches argument.

Signed-off-by: Mostyn Bramley-Moore <mostynb@opera.com>
---
 builtin/describe.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/builtin/describe.c b/builtin/describe.c
index 8a25abe..2386c64 100644
--- a/builtin/describe.c
+++ b/builtin/describe.c
@@ -404,8 +404,8 @@ int cmd_describe(int argc, const char **argv, const char *prefix)
 			    N_("only output exact matches"), 0),
 		OPT_INTEGER(0, "candidates", &max_candidates,
 			    N_("consider <n> most recent tags (default: 10)")),
-		OPT_STRING(0, "match",       &pattern, N_("pattern"),
-			   N_("only consider tags matching <pattern>")),
+		OPT_STRING(0, "match",       &pattern, N_("glob"),
+			   N_("only consider tags matching <glob>")),
 		OPT_BOOL(0, "always",        &always,
 			N_("show abbreviated commit object as fallback")),
 		{OPTION_STRING, 0, "dirty",  &dirty, N_("mark"),
-- 
2.5.0
Previous: Mostyn Bramley-MooreNext: Mostyn Bramley-Moore
Message 2 of 4 in “add a perl compatible regex match flag to git describe”
  1. 0/2 add a perl compatible regex match flag to git describeMostyn Bramley-Moore, Dec 27, 2015
  2. 1/2 describe: mention glob in the --matches help textMostyn Bramley-Moore, Dec 27, 2015
  3. 2/2 describe: add --pcre-match optionMostyn Bramley-Moore, Dec 27, 2015
  4. brian m. carlsonDec 27, 2015

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.