Skip to content

Commit

Permalink
chore: update NextVersion comment
Browse files Browse the repository at this point in the history
  • Loading branch information
smlx committed Aug 18, 2023
1 parent 71b46a8 commit 1aaf5ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ func walkCommits(r *git.Repository, tagRefs map[string]string, order git.LogOrde
}

// NextVersion returns a string containing the next version based on the state
// of the git repository in path.
// of the git repository in path. It inspects the most recent tag, and the
// commits made after that tag.
func NextVersion(path string) (string, error) {
// open repository
r, err := git.PlainOpenWithOptions(path, &git.PlainOpenOptions{DetectDotGit: true})
Expand Down

0 comments on commit 1aaf5ac

Please sign in to comment.