Skip to content

Commit a5e14ea

Browse files
asheidukgitster
authored andcommitted
doc: fix descripion for 'git tag --format'
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ad47194 commit a5e14ea

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Documentation/git-tag.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,12 @@ This option is only applicable when listing tags without annotation lines.
187187
`--create-reflog`, but currently does not negate the setting of
188188
`core.logAllRefUpdates`.
189189

190+
--format=<format>::
191+
A string that interpolates `%(fieldname)` from a tag ref being shown
192+
and the object it points at. The format is the same as
193+
that of linkgit:git-for-each-ref[1]. When unspecified,
194+
defaults to `%(refname:strip=2)`.
195+
190196
<tagname>::
191197
The name of the tag to create, delete, or describe.
192198
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.
198204
The object that the new tag will refer to, usually a commit.
199205
Defaults to HEAD.
200206

201-
<format>::
202-
A string that interpolates `%(fieldname)` from a tag ref being shown
203-
and the object it points at. The format is the same as
204-
that of linkgit:git-for-each-ref[1]. When unspecified,
205-
defaults to `%(refname:strip=2)`.
206-
207207
CONFIGURATION
208208
-------------
209209
By default, 'git tag' in sign-with-default mode (-s) will use your

0 commit comments

Comments
 (0)