diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-07 20:17:23 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-09 14:09:53 +1100 |
commit | e8229f0ee0eafb2d94674a091cb7a8776468e9c1 (patch) | |
tree | fd4ff9b117eafc5187a86f4945a5fa9e2038f32d /pkg/commands/git_config/fake_git_config.go | |
parent | 610e503296b36ef1d0551c957a6c593fae4cd60c (diff) |
support general git config calls
Diffstat (limited to 'pkg/commands/git_config/fake_git_config.go')
-rw-r--r-- | pkg/commands/git_config/fake_git_config.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/commands/git_config/fake_git_config.go b/pkg/commands/git_config/fake_git_config.go index f010efd8c..78ba62c54 100644 --- a/pkg/commands/git_config/fake_git_config.go +++ b/pkg/commands/git_config/fake_git_config.go @@ -17,6 +17,13 @@ func (self *FakeGitConfig) Get(key string) string { return self.mockResponses[key] } +func (self *FakeGitConfig) GetGeneral(args string) string { + if self.mockResponses == nil { + return "" + } + return self.mockResponses[args] +} + func (self *FakeGitConfig) GetBool(key string) bool { return isTruthy(self.Get(key)) } |