1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

Drop the git config cache when getting focus

This allows changing git config values while lazygit is running (e.g. in a
different terminal tab, or even in lazygit's ":" shell prompt), and have them
take effect immediately, while still getting some benefit from caching them
while lazygit is in the foreground.
This commit is contained in:
Stefan Haller
2025-03-08 12:06:50 +01:00
parent f98ad65f46
commit 3e15be576e
4 changed files with 18 additions and 0 deletions

View File

@ -27,3 +27,6 @@ func (self *FakeGitConfig) GetGeneral(args string) string {
func (self *FakeGitConfig) GetBool(key string) bool {
return isTruthy(self.Get(key))
}
func (self *FakeGitConfig) DropCache() {
}