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

[PATCH 4/6] doc: fix descripion for 'git tag --format'

From
Andreas Heiduk <asheiduk@gmail.com>
Date
Oct 22, 2018, 20:45 UTC
Message-ID
<20181022204546.20354-5-asheiduk@gmail.com>
In-Reply-To
<20181022204546.20354-1-asheiduk@gmail.com>

The '--format=<format>' is now listed in the 'OPTIONS' section, not only the '<format>' string itself. The description moved up a few paragraphs because '<format>' is not a standalone paramater but a parameter for the option '--format'.

Signed-off-by: Andreas Heiduk <asheiduk@gmail.com>
---
 Documentation/git-tag.txt | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/Documentation/git-tag.txt b/Documentation/git-tag.txt
index 92f9c12b87..f2d644e3af 100644
--- a/Documentation/git-tag.txt
+++ b/Documentation/git-tag.txt
@@ -187,6 +187,12 @@ This option is only applicable when listing tags without annotation lines.
 	`--create-reflog`, but currently does not negate the setting of
 	`core.logAllRefUpdates`.
 
+--format=<format>::
+	A string that interpolates `%(fieldname)` from a tag ref being shown
+	and the object it points at.  The format is the same as
+	that of linkgit:git-for-each-ref[1].  When unspecified,
+	defaults to `%(refname:strip=2)`.
+
 <tagname>::
 	The name of the tag to create, delete, or describe.
 	The new tag name must pass all checks defined by
@@ -198,12 +204,6 @@ This option is only applicable when listing tags without annotation lines.
 	The object that the new tag will refer to, usually a commit.
 	Defaults to HEAD.
 
-<format>::
-	A string that interpolates `%(fieldname)` from a tag ref being shown
-	and the object it points at.  The format is the same as
-	that of linkgit:git-for-each-ref[1].  When unspecified,
-	defaults to `%(refname:strip=2)`.
-
 CONFIGURATION
 -------------
 By default, 'git tag' in sign-with-default mode (-s) will use your
-- 
2.19.1
Previous: Andreas Heiduk
Message 8 of 8 in “various fixes for docs”
  1. 0/6 various fixes for docsAndreas Heiduk, Oct 22, 2018
  2. 1/6 doc: clarify boundaries of 'git worktree list --porcelain'Andreas Heiduk, Oct 22, 2018
  3. Eric SunshineOct 22, 2018
  4. 2/6 doc: fix ASCII art tab spacingAndreas Heiduk, Oct 22, 2018
  5. 3/6 doc: fix inappropriate monospace formattingAndreas Heiduk, Oct 22, 2018
  6. 5/6 doc: fix indentation of listing blocks in gitweb.conf.txtAndreas Heiduk, Oct 22, 2018
  7. 6/6 doc: fix formatting in git-update-refAndreas Heiduk, Oct 22, 2018
  8. 4/6 doc: fix descripion for 'git tag --format'Andreas Heiduk, Oct 22, 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.