config: clarify comment on author vs committer
The comment for the CurrentCommitter function used the text "author a commit". This is confusing, because the author and committer need not be the same person. The comment implied one wanted to produce the author, whereas the function name implied one wanted to produce the committer. In a future version, we'll add a function for the author as well, so let's standardize on this function being for the committer and update the comment accordingly by saying "commit a change".
This commit is contained in:
parent
671c4b697f
commit
0519ab182f
@ -479,7 +479,7 @@ func (c *Configuration) loadGitConfig() {
|
||||
}
|
||||
}
|
||||
|
||||
// CurrentCommitter returns the name/email that would be used to author a commit
|
||||
// CurrentCommitter returns the name/email that would be used to commit a change
|
||||
// with this configuration. In particular, the "user.name" and "user.email"
|
||||
// configuration values are used
|
||||
func (c *Configuration) CurrentCommitter() (name, email string) {
|
||||
|
Loading…
Reference in New Issue
Block a user