diff options
author | Chris Marchesi <chrism@vancluevertech.com> | 2018-09-07 10:11:44 -0700 |
---|---|---|
committer | Chris Marchesi <chrism@vancluevertech.com> | 2018-09-07 10:11:44 -0700 |
commit | f8adfff71d844df7efa1367b7958e8f26411aaf9 (patch) | |
tree | ef9ed83a413061d39bf9b9e9fb8c5e6224257c0c /repository.go | |
parent | 9cc654ccb69324c7ab9cd67d8a92f9641b3f77b4 (diff) | |
download | go-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 'repository.go')
-rw-r--r-- | repository.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/repository.go b/repository.go index 096ec13..a132c39 100644 --- a/repository.go +++ b/repository.go @@ -494,7 +494,7 @@ func (r *Repository) DeleteBranch(name string) error { // CreateTag creates a tag. If opts is included, the tag is an annotated tag, // otherwise a lightweight tag is created. -func (r *Repository) CreateTag(name string, hash plumbing.Hash, opts *TagObjectOptions) (*plumbing.Reference, error) { +func (r *Repository) CreateTag(name string, hash plumbing.Hash, opts *CreateTagOptions) (*plumbing.Reference, error) { rname := plumbing.ReferenceName(path.Join("refs", "tags", name)) _, err := r.Storer.Reference(rname) @@ -527,7 +527,7 @@ func (r *Repository) CreateTag(name string, hash plumbing.Hash, opts *TagObjectO return ref, nil } -func (r *Repository) createTagObject(name string, hash plumbing.Hash, opts *TagObjectOptions) (plumbing.Hash, error) { +func (r *Repository) createTagObject(name string, hash plumbing.Hash, opts *CreateTagOptions) (plumbing.Hash, error) { if err := opts.Validate(r, hash); err != nil { return plumbing.ZeroHash, err } |