summaryrefslogtreecommitdiff
path: root/lib/gitlab/git/tag.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/git/tag.rb')
-rw-r--r--lib/gitlab/git/tag.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/gitlab/git/tag.rb b/lib/gitlab/git/tag.rb
new file mode 100644
index 00000000000..b5342c3d310
--- /dev/null
+++ b/lib/gitlab/git/tag.rb
@@ -0,0 +1,17 @@
+module Gitlab
+ module Git
+ class Tag < Ref
+ attr_reader :object_sha
+
+ def initialize(repository, name, target, message = nil)
+ super(repository, name, target)
+
+ @message = message
+ end
+
+ def message
+ encode! @message
+ end
+ end
+ end
+end