summaryrefslogtreecommitdiffstats
path: root/pkg/gui/file_watching.go
AgeCommit message (Collapse)Author
2023-08-02Remove file watcher codeJesse Duffield
Now that we refresh upon focus, we can scrap this file watching code. Stefan says few git UIs use file watching, and I understand why: the reason this code was problematic in the first place is that watching files is expensive and if you have too many open file handles that can cause problems. Importantly: this code that's being removed was _already_ dead.
2023-07-08Add busy count for integration testsJesse Duffield
Integration tests need to be notified when Lazygit is idle so they can progress to the next assertion / user action.
2023-04-30Begin refactoring guiJesse Duffield
This begins a big refactor of moving more code out of the Gui struct into contexts, controllers, and helpers. We also move some code into structs in the gui package purely for the sake of better encapsulation
2022-03-17start moving commit panel handlers into controllerJesse Duffield
more and more move rebase commit refreshing into existing abstraction and more and more WIP and more handling clicks properly fix merge conflicts update cheatsheet lots more preparation to start moving things into controllers WIP better typing expand on remotes controller moving more code into controllers
2022-03-17start refactoring guiJesse Duffield
2021-09-01Fix misspellscodesoap
2021-04-02big refactor to give our enums actual typesJesse Duffield
2020-11-18fix lint errorsJesse Duffield
2020-10-10add some safe goroutinesJesse Duffield
WIP
2020-09-29move models folder into commands folderJesse Duffield
2020-09-29move file and submoduleJesse Duffield
2020-09-26add in-built logging support for a better dev experienceJesse Duffield
2020-03-28smart refreshing filesJesse Duffield
2020-03-09big golangci-lint cleanupJesse Duffield
2020-01-12handle when fsnotify doesn't workJesse Duffield
2020-01-08don't watch deleted filesJesse Duffield
2020-01-08minor fixupJesse Duffield
2020-01-08reduce to 50Jesse Duffield
2020-01-08improve file watchingJesse Duffield
By default, macs have 256 open files allowed by a given process. This sucks when you end up with over 256 files modified in a repo because after you've watched all of them, lots of other calls to the command line will fail due to violating the limit. Given there's no easy platform agnostic way to see what you've got configured for how many files a process can have open, I'm going to arbitrarily set the max to 200 and when we hit the limit we start unwatching older files to make way for new ones. WIP
2019-11-14add file watching for modified filesJesse Duffield
log createErrorPanel error swallow error when adding file to watcher