Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
325
def
_has_unmerged_paths() -> bool:
326
_, stdout, _ = cmd_output_b(
'git'
,
'ls-files'
,
'--unmerged'
)
327
return
bool(stdout.strip())
328
329
330
def
_has_unstaged_config(config_file: str) -> bool:
Callers
2
test_has_unmerged_paths
Function · 0.90
run
Function · 0.85
Calls
1
cmd_output_b
Function · 0.90
Tested by
1
test_has_unmerged_paths
Function · 0.72