summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Kirill A. Shutemov <kirill@shutemov.name>2011-12-07 05:01:45 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-12-09 09:39:30 -0800
commitd3e05983306537c8ec911fc52092697ba80830fa (patch)
tree0697f2f90d2ce0a03e10fe2231a15017457c1500 /Documentation
parentMerge branch 'master' of git://bogomips.org/git-svn (diff)
downloadtgif-d3e05983306537c8ec911fc52092697ba80830fa.tar.xz
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')
-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 c83cb13de6..622a019eb0 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