Skip to content

Commit 995e8df

Browse files
perlduckgitster
authored andcommitted
Documentation: git-tag '-m'/'-F' implies '-a'
1 parent ec31b0c commit 995e8df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Documentation/git-tag.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ creates a 'tag' object, and requires the tag message. Unless
2626
`-m <msg>` or `-F <file>` is given, an editor is started for the user to type
2727
in the tag message.
2828

29+
If `-m <msg>` or `-F <file>` is given and `-a`, `-s`, and `-u <key-id>`
30+
are absent, `-a` is implied.
31+
2932
Otherwise just the SHA1 object name of the commit object is
3033
written (i.e. a lightweight tag).
3134

@@ -68,10 +71,14 @@ OPTIONS
6871
Use the given tag message (instead of prompting).
6972
If multiple `-m` options are given, there values are
7073
concatenated as separate paragraphs.
74+
Implies `-a` if none of `-a`, `-s`, or `-u <key-id>`
75+
is given.
7176

7277
-F <file>::
7378
Take the tag message from the given file. Use '-' to
7479
read the message from the standard input.
80+
Implies `-a` if none of `-a`, `-s`, or `-u <key-id>`
81+
is given.
7582

7683
CONFIGURATION
7784
-------------

0 commit comments

Comments
 (0)