path: root/Documentation/git-tag.txt
diff options
authorNicolas Morey-Chaisemartin <>2018-02-06 08:36:24 (GMT)
committerJunio C Hamano <>2018-02-07 20:46:48 (GMT)
commit9eed6e40c0ec9cbe89efd7303c3facd16fa1364f (patch)
tree697eb7f65f64ff2cdbdb06f5f4fcc0c9a0bb57b6 /Documentation/git-tag.txt
parent2512f15446149235156528dafbe75930c712b29e (diff)
tag: add --edit option
Add a --edit option whichs allows modifying the messages provided by -m or -F, the same way git commit --edit does. Signed-off-by: Nicolas Morey-Chaisemartin <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git-tag.txt')
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/git-tag.txt b/Documentation/git-tag.txt
index 956fc01..1d17101 100644
--- a/Documentation/git-tag.txt
+++ b/Documentation/git-tag.txt
@@ -9,7 +9,7 @@ git-tag - Create, list, delete or verify a tag object signed with GPG
-'git tag' [-a | -s | -u <keyid>] [-f] [-m <msg> | -F <file>]
+'git tag' [-a | -s | -u <keyid>] [-f] [-m <msg> | -F <file>] [-e]
<tagname> [<commit> | <object>]
'git tag' -d <tagname>...
'git tag' [-n[<num>]] -l [--contains <commit>] [--no-contains <commit>]
@@ -167,6 +167,12 @@ This option is only applicable when listing tags without annotation lines.
Implies `-a` if none of `-a`, `-s`, or `-u <keyid>`
is given.
+ The message taken from file with `-F` and command line with
+ `-m` are usually used as the tag message unmodified.
+ This option lets you further edit the message taken from these sources.
This option sets how the tag message is cleaned up.
The '<mode>' can be one of 'verbatim', 'whitespace' and 'strip'. The