summaryrefslogtreecommitdiff
path: root/Documentation/git-tag.txt
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill@shutemov.name>2011-12-07 03:01:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-12-09 17:39:30 (GMT)
commitd3e05983306537c8ec911fc52092697ba80830fa (patch)
tree0697f2f90d2ce0a03e10fe2231a15017457c1500 /Documentation/git-tag.txt
parent4cb5d10b14dcbe0155bed9c45ccb94e83bd4c599 (diff)
downloadgit-d3e05983306537c8ec911fc52092697ba80830fa.zip
git-d3e05983306537c8ec911fc52092697ba80830fa.tar.gz
git-d3e05983306537c8ec911fc52092697ba80830fa.tar.bz2
git-tag: introduce --cleanup option
Normally git tag strips tag message lines starting with '#', trailing spaces from every line and empty lines from the beginning and end. --cleanup allows to select different cleanup modes for tag message. It provides the same interface as --cleanup option in git-commit. Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-tag.txt')
-rw-r--r--Documentation/git-tag.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/git-tag.txt b/Documentation/git-tag.txt
index c83cb13..622a019 100644
--- a/Documentation/git-tag.txt
+++ b/Documentation/git-tag.txt
@@ -99,6 +99,13 @@ OPTIONS
Implies `-a` if none of `-a`, `-s`, or `-u <key-id>`
is given.
+--cleanup=<mode>::
+ This option sets how the tag message is cleaned up.
+ The '<mode>' can be one of 'verbatim', 'whitespace' and 'strip'. The
+ 'strip' mode is default. The 'verbatim' mode does not change message at
+ all, 'whitespace' removes just leading/trailing whitespace lines and
+ 'strip' removes both whitespace and commentary.
+
<tagname>::
The name of the tag to create, delete, or describe.
The new tag name must pass all checks defined by