MCPcopy Create free account
hub / github.com/deepseek-ai/DeepSpec / get_git_diff

Function get_git_diff

deepspec/utils/__init__.py:53–63  ·  view source on GitHub ↗
(rev="HEAD")

Source from the content-addressed store, hash-verified

51
52
53def get_git_diff(rev="HEAD"):
54 import subprocess
55
56 try:
57 return subprocess.check_output(
58 ["git", "diff", rev],
59 encoding="utf-8",
60 errors="replace",
61 ).rstrip()
62 except Exception:
63 return "unknown"
64
65
66__all__ = [

Callers 2

train.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected