jesseduffield.lazygit/pkg/integration/tests/file
Stefan Haller ad507d67f4 Only prompt to continue a rebase/merge if we started it
When conflicts of an in-progress rebase/merge/cherry-pick/revert are
resolved, lazygit pops up a prompt offering to continue it. This is
helpful when you started the operation in lazygit and resolved the
conflicts in your editor. But it's confusing when the operation was
started outside lazygit — e.g. by a coding agent in another terminal
that resolves the conflicts but hasn't continued yet because it's still
running tests or fixing the build. lazygit would then prompt unbidden.

Track whether the in-progress operation was started from within lazygit,
and only show the prompt in that case. We record this right after running
a merge/rebase step (in CheckMergeOrRebaseWithRefreshOptions, the
subprocess branch of genericMergeCommand, and the custom-command
conflict path), and clear it whenever a refresh observes that no
operation is in progress — which also handles an operation that was
finished or aborted externally.

The conflict-resolution tests start their operation by running git
directly (not through lazygit's UI), so they call the new test helper
Common.PretendMergeOrRebaseStartedInLazygit to have lazygit treat the
operation as its own and still get the prompt.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-03 18:28:07 +02:00
..
click_arrow_to_collapse.go Add support for clicking on arrows in the file list to expand/collapse directories 2026-03-25 17:08:35 +01:00
collapse_expand.go Add a root item ("/") if files at top level have changed 2025-03-21 08:04:58 +01:00
copy_menu.go Fix copying a file's absolute path when running in a linked worktree 2026-04-19 11:16:02 +02:00
dir_with_untracked_file.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
discard_all_dir_changes.go Only prompt to continue a rebase/merge if we started it 2026-07-03 18:28:07 +02:00
discard_all_dir_changes_when_filtering.go Add integration tests for discarding dir changes when filtering by path 2026-03-27 14:34:47 +01:00
discard_range_select.go Add a root item ("/") if files at top level have changed 2025-03-21 08:04:58 +01:00
discard_staged_changes.go Add a root item ("/") if files at top level have changed 2025-03-21 08:04:58 +01:00
discard_unstaged_dir_changes.go Make file sort order and case sensitivity configurable 2026-03-30 17:53:25 +02:00
discard_unstaged_dir_changes_when_filtering.go Improve performance of discarding changes in large directories 2026-03-27 14:34:47 +01:00
discard_unstaged_file_changes.go Add a root item ("/") if files at top level have changed 2025-03-21 08:04:58 +01:00
discard_unstaged_range_select.go Add a root item ("/") if files at top level have changed 2025-03-21 08:04:58 +01:00
discard_various_changes.go Only prompt to continue a rebase/merge if we started it 2026-07-03 18:28:07 +02:00
discard_various_changes_range_select.go Only prompt to continue a rebase/merge if we started it 2026-07-03 18:28:07 +02:00
exclude_without_info_dir.go Fix #5302: Create .git/info directory before writing exclude file 2026-03-08 16:23:39 +01:00
gitignore.go Fix gitignore path collisions 2026-01-28 21:10:29 +01:00
gitignore_special_characters.go Fix gitignore path collisions 2026-01-28 21:10:29 +01:00
remember_commit_message_after_fail.go Add a root item ("/") if files at top level have changed 2025-03-21 08:04:58 +01:00
rename_similarity_threshold_change.go Allow changing diff context size and rename threshold when main view is focused 2025-04-23 08:38:46 +02:00
renamed_files.go Fix display of renamed files 2025-04-02 18:15:44 +02:00
renamed_files_no_root_item.go Add user config gui.addRootItemInFileTree 2025-05-24 18:17:25 +02:00
shared.go Support range select for staging/discarding files 2024-01-25 11:34:59 +11:00
stage_children_range_select.go Add a root item ("/") if files at top level have changed 2025-03-21 08:04:58 +01:00
stage_deleted_range_select.go Add a root item ("/") if files at top level have changed 2025-03-21 08:04:58 +01:00
stage_range_select.go Add a root item ("/") if files at top level have changed 2025-03-21 08:04:58 +01:00