1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-28 16:02:01 +03:00

remove go-gitconfig package

This commit is contained in:
Jesse Duffield
2020-12-21 09:38:36 +11:00
parent 09f32d4f84
commit 78867647d1
16 changed files with 107 additions and 440 deletions

View File

@ -43,13 +43,6 @@ func (c *GitCommand) colorArg() string {
}
func (c *GitCommand) GetConfigValue(key string) string {
value, _ := c.getLocalGitConfig(key)
// we get an error if the key doesn't exist which we don't care about
if value != "" {
return value
}
value, _ = c.getGlobalGitConfig(key)
return value
output, _ := c.getGitConfigValue(key)
return output
}