MCPcopy Create free account
hub / github.com/git-bug/git-bug / GetUserEmail

Method GetUserEmail

repository/gogit.go:286–288  ·  view source on GitHub ↗

GetUserEmail returns the email address that the user has used to configure git.

()

Source from the content-addressed store, hash-verified

284
285// GetUserEmail returns the email address that the user has used to configure git.
286func (repo *GoGitRepo) GetUserEmail() (string, error) {
287 return repo.AnyConfig().ReadString("user.email")
288}
289
290// GetCoreEditor returns the name of the editor that the user has used to configure git.
291func (repo *GoGitRepo) GetCoreEditor() (string, error) {

Callers

nothing calls this directly

Calls 2

AnyConfigMethod · 0.95
ReadStringMethod · 0.65

Tested by

no test coverage detected