MCPcopy Index your code
hub / github.com/ClangBuiltLinux/tc-build / git

Method git

tc_build/source.py:122–127  ·  view source on GitHub ↗
(
        self, cmd: tc_build.utils.CmdList, capture_output: bool = False
    )

Source from the content-addressed store, hash-verified

120 self.git(['checkout', ref])
121
122 def git(
123 self, cmd: tc_build.utils.CmdList, capture_output: bool = False
124 ) -> subprocess.CompletedProcess:
125 return subprocess.run(
126 ['git', *cmd], capture_output=capture_output, check=True, cwd=self.repo, text=True
127 )
128
129 def git_capture(self, cmd: tc_build.utils.CmdList) -> str:
130 return self.git(cmd, capture_output=True).stdout.strip()

Callers 4

downloadMethod · 0.95
git_captureMethod · 0.95
ref_existsMethod · 0.95
updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected