aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorChris Marchesi <chrism@vancluevertech.com>2018-09-07 10:11:44 -0700
committerChris Marchesi <chrism@vancluevertech.com>2018-09-07 10:11:44 -0700
commitf8adfff71d844df7efa1367b7958e8f26411aaf9 (patch)
treeef9ed83a413061d39bf9b9e9fb8c5e6224257c0c /options.go
parent9cc654ccb69324c7ab9cd67d8a92f9641b3f77b4 (diff)
downloadgo-git-f8adfff71d844df7efa1367b7958e8f26411aaf9.tar.gz
git: s/TagObjectOptions/CreateTagOptions/
Just renaming the TagObjectOptions type to CreateTagOptions so that it's consistent with the other option types. Signed-off-by: Chris Marchesi <chrism@vancluevertech.com>
Diffstat (limited to 'options.go')
-rw-r--r--options.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/options.go b/options.go
index 856bd5e..b572770 100644
--- a/options.go
+++ b/options.go
@@ -385,8 +385,8 @@ var (
ErrMissingMessage = errors.New("message field is required")
)
-// TagObjectOptions describes how a tag object should be created.
-type TagObjectOptions struct {
+// CreateTagOptions describes how a tag object should be created.
+type CreateTagOptions struct {
// Tagger defines the signature of the tag creator.
Tagger *object.Signature
// Message defines the annotation of the tag. It is canonicalized during
@@ -399,7 +399,7 @@ type TagObjectOptions struct {
}
// Validate validates the fields and sets the default values.
-func (o *TagObjectOptions) Validate(r *Repository, hash plumbing.Hash) error {
+func (o *CreateTagOptions) Validate(r *Repository, hash plumbing.Hash) error {
if o.Tagger == nil {
return ErrMissingTagger
}