jesseduffield.lazygit/pkg/app
Golopmoui3 0bfa987b7a Don't load or migrate the user config when running in daemon mode
When git invokes lazygit as a daemon during a rebase (e.g. as the
GIT_SEQUENCE_EDITOR), the child instance loaded the user config on
startup. If the config still had a pre-migration schema, it was
auto-migrated and written back to disk in the middle of the git
operation. With the config file checked in (e.g. a dotfiles repo),
this dirties the working tree mid-rebase and git aborts:

    error: Your local changes to the following files would be
    overwritten by merge: config.yml

The daemon doesn't need the user config for anything, so skip loading
it entirely in daemon mode: build the app config from defaults without
touching any config files, and handle the daemon instruction right
away. Normal (non-daemon) startup is unchanged.

Fixes #5998
2026-09-06 20:41:18 +03:00
..
daemon Move dragged commits in one rebase 2026-07-31 08:37:28 +02:00
types Add screen-mode command line argument 2025-01-02 16:01:48 +11:00
app.go Offer direnv .envrc approval from inside lazygit 2026-06-04 09:05:01 +02:00
entry_point.go Don't load or migrate the user config when running in daemon mode 2026-09-06 20:41:18 +03:00
errors.go Recognize a repo that has no work tree instead of bailing out 2026-08-08 11:15:01 +02:00