Skip to content

Commit 03e73ec

Browse files
committed
refactor: fix option order
1 parent b56a38c commit 03e73ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

repo_tag.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,13 @@ func (r *Repository) Tag(name string, opts ...TagOptions) (*Tag, error) {
141141
// TagsOptions contains optional arguments for listing tags.
142142
// Docs: https://git-scm.com/docs/git-tag#Documentation/git-tag.txt---list
143143
type TagsOptions struct {
144-
// The timeout duration before giving up for each shell command execution.
145-
// The default timeout duration will be used when not supplied.
146-
Timeout time.Duration
147144
// SortKet sorts tags with provided tag key, optionally prefixed with '-' to sort tags in descending order.
148145
SortKey string
149146
// Pattern filters tags matching the specified pattern.
150147
Pattern string
148+
// The timeout duration before giving up for each shell command execution.
149+
// The default timeout duration will be used when not supplied.
150+
Timeout time.Duration
151151
}
152152

153153
// RepoTags returns a list of tags of the repository in given path.

0 commit comments

Comments
 (0)