MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / _has_unmerged_paths

Function _has_unmerged_paths

pre_commit/commands/run.py:325–327  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

323
324
325def _has_unmerged_paths() -> bool:
326 _, stdout, _ = cmd_output_b('git', 'ls-files', '--unmerged')
327 return bool(stdout.strip())
328
329
330def _has_unstaged_config(config_file: str) -> bool:

Callers 2

test_has_unmerged_pathsFunction · 0.90
runFunction · 0.85

Calls 1

cmd_output_bFunction · 0.90

Tested by 1

test_has_unmerged_pathsFunction · 0.72