jesseduffield.lazygit/pkg/commands/models
Stefan Haller bc9fafff02 Make the conflict marker size a parameter of our marker matching
Git doesn't always write conflict markers of seven characters: the
conflict-marker-size gitattribute overrides that per file, and it is set
for good reasons — for file types whose regular content tends to contain
marker-looking lines, such as documentation about merging, or test
scripts. We hard-code seven characters everywhere we look for markers,
so none of that works.

Prepare for honoring the attribute by threading the marker size through
everything that recognizes a marker, carried on the file model. Nothing
fills it in yet, so we still use git's default size of seven everywhere,
and matching is unchanged: a marker consists of exactly that many marker
characters, and all but the "=======" one are followed by a space and a
label.
2026-08-08 12:43:42 +02:00
..
author.go Keep track of authors across local commits and branch commits for suggestions 2023-07-22 10:47:04 +10:00
branch.go Add ShortRefName to Ref interface 2024-08-28 18:27:52 +02:00
commit.go Add HeadCommitIdx helper function 2026-06-22 09:16:57 +02:00
commit_file.go Show renamed files in the custom patch builder 2026-07-04 13:05:09 +02:00
commit_test.go Add HeadCommitIdx helper function 2026-06-22 09:16:57 +02:00
file.go Make the conflict marker size a parameter of our marker matching 2026-08-08 12:43:42 +02:00
github.go Carry aggregate check state with GitHub pull requests 2026-07-31 09:01:44 +02:00
ref.go Move the Ref interface from gui/types to models 2025-07-31 15:21:34 +02:00
remote.go Add PushUrls field to models.Remote 2026-05-04 13:09:47 +02:00
remote_branch.go Add ShortRefName to Ref interface 2024-08-28 18:27:52 +02:00
stash_entry.go Add hash field to models.StashEntry 2025-08-25 19:23:30 +02:00
submodule_config.go Show all submodules recursively 2024-03-07 20:16:28 +01:00
tag.go Revert "Add IsAnnotated field to models.Tag struct" 2025-07-28 10:53:51 +02:00
working_tree_state.go Make WorkingTreeState a struct, and add cherry-picking and reverting states 2025-04-20 15:53:17 +02:00
worktree.go Show branch name and detached HEAD in worktrees tab 2026-03-08 12:51:46 +01:00