git-tag: support -F <file> option

This imitates the behaviour of git-commit.

Noticed by Han-Wen Nienhuys.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Johannes Schindelin
2006-12-21 15:13:02 +01:00
committed by Junio C Hamano
parent 9e11554917
commit f79c73ce9c
2 changed files with 16 additions and 1 deletions

View File

@ -45,6 +45,17 @@ do
message_given=1
fi
;;
-F)
annotate=1
shift
if test "$#" = "0"; then
die "error: option -F needs an argument"
exit 2
else
message="$(cat "$1")"
message_given=1
fi
;;
-u)
annotate=1
signed=1