MCPcopy
hub / github.com/nosarthur/gita / run_quiet_diff

Function run_quiet_diff

gita/info.py:167–176  ·  view source on GitHub ↗

Return the return code of git diff `args` in quiet mode

(flags: List[str], args: List[str], path)

Source from the content-addressed store, hash-verified

165
166
167def run_quiet_diff(flags: List[str], args: List[str], path) -> int:
168 """
169 Return the return code of git diff `args` in quiet mode
170 """
171 result = subprocess.run(
172 ["git"] + flags + ["diff", "--quiet"] + args,
173 stderr=subprocess.DEVNULL,
174 cwd=path,
175 )
176 return result.returncode
177
178
179def get_common_commit(path) -> str:

Callers 1

_get_repo_statusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected