aboutsummaryrefslogtreecommitdiff
path: root/git-tag.sh
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2006-12-21 15:13:02 +0100
committerJunio C Hamano <junkio@cox.net>2006-12-21 22:44:04 -0800
commitf79c73ce9ce5d8bd1b4abaf3fc384aa8daa169ef (patch)
tree11eb5596425275e075df0226524ceb633edfa295 /git-tag.sh
parent9e11554917d391c18e043bc0b38ee0377e69568e (diff)
downloadgit-f79c73ce9ce5d8bd1b4abaf3fc384aa8daa169ef.tar.gz
git-f79c73ce9ce5d8bd1b4abaf3fc384aa8daa169ef.tar.xz
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>
Diffstat (limited to 'git-tag.sh')
-rwxr-xr-xgit-tag.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/git-tag.sh b/git-tag.sh
index d53f94cd9..36cd6aa25 100755
--- a/git-tag.sh
+++ b/git-tag.sh
@@ -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