Merge branch 'tb/pack-revindex-on-disk'
[git/debian.git] / Documentation / git-mktag.txt
blob17a2603a6006b2045e4e1506bab4e9167af9944e
1 git-mktag(1)
2 ============
4 NAME
5 ----
6 git-mktag - Creates a tag object with extra validation
9 SYNOPSIS
10 --------
11 [verse]
12 'git mktag'
14 OPTIONS
15 -------
17 --strict::
18         By default mktag turns on the equivalent of
19         linkgit:git-fsck[1] `--strict` mode. Use `--no-strict` to
20         disable it.
22 DESCRIPTION
23 -----------
25 Reads a tag contents on standard input and creates a tag object. The
26 output is the new tag's <object> identifier.
28 This command is mostly equivalent to linkgit:git-hash-object[1]
29 invoked with `-t tag -w --stdin`. I.e. both of these will create and
30 write a tag found in `my-tag`:
32     git mktag <my-tag
33     git hash-object -t tag -w --stdin <my-tag
35 The difference is that mktag will die before writing the tag if the
36 tag doesn't pass a linkgit:git-fsck[1] check.
38 The "fsck" check done mktag is stricter than what linkgit:git-fsck[1]
39 would run by default in that all `fsck.<msg-id>` messages are promoted
40 from warnings to errors (so e.g. a missing "tagger" line is an error).
42 Extra headers in the object are also an error under mktag, but ignored
43 by linkgit:git-fsck[1]. This extra check can be turned off by setting
44 the appropriate `fsck.<msg-id>` varible:
46     git -c fsck.extraHeaderEntry=ignore mktag <my-tag-with-headers
48 Tag Format
49 ----------
50 A tag signature file, to be fed to this command's standard input,
51 has a very simple fixed format: four lines of
53   object <hash>
54   type <typename>
55   tag <tagname>
56   tagger <tagger>
58 followed by some 'optional' free-form message (some tags created
59 by older Git may not have `tagger` line).  The message, when it
60 exists, is separated by a blank line from the header.  The
61 message part may contain a signature that Git itself doesn't
62 care about, but that can be verified with gpg.
64 GIT
65 ---
66 Part of the linkgit:git[1] suite