MCPcopy
hub / github.com/pre-commit/pre-commit / is_in_merge_conflict

Function is_in_merge_conflict

pre_commit/git.py:96–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94
95
96def is_in_merge_conflict() -> bool:
97 git_dir = get_git_dir('.')
98 return (
99 os.path.exists(os.path.join(git_dir, 'MERGE_MSG')) and
100 os.path.exists(os.path.join(git_dir, 'MERGE_HEAD'))
101 )
102
103
104def parse_merge_msg_for_conflicts(merge_msg: bytes) -> list[str]:

Callers

nothing calls this directly

Calls 2

get_git_dirFunction · 0.85
existsMethod · 0.80

Tested by

no test coverage detected