MCPcopy Index your code
hub / github.com/CodeClash-ai/CodeClash / has_unpushed_commits

Function has_unpushed_commits

codeclash/utils/git_utils.py:14–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def has_unpushed_commits() -> bool:
15 try:
16 result = subprocess.run(
17 ["git", "rev-list", "--count", "@{u}..HEAD"], capture_output=True, text=True, check=True
18 )
19 return int(result.stdout.strip()) > 0
20 except subprocess.CalledProcessError:
21 return False

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected