MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / is_dirty

Function is_dirty

misc/python/materialize/git.py:224–228  ·  view source on GitHub ↗

Check if the working directory has modifications to tracked files

()

Source from the content-addressed store, hash-verified

222
223
224def is_dirty() -> bool:
225 """Check if the working directory has modifications to tracked files"""
226 proc = subprocess.run("git diff --no-ext-diff --quiet --exit-code".split())
227 idx = subprocess.run("git diff --cached --no-ext-diff --quiet --exit-code".split())
228 return proc.returncode != 0 or idx.returncode != 0
229
230
231def describe() -> str:

Callers

nothing calls this directly

Calls 2

runMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected