MCPcopy Create free account
hub / github.com/nodejs/node / GitCheckoutFileSafe

Method GitCheckoutFileSafe

deps/v8/tools/release/git_recipes.py:137–143  ·  view source on GitHub ↗
(self, name, branch_or_hash, **kwargs)

Source from the content-addressed store, hash-verified

135 self.Git(MakeArgs(["checkout -f", branch_or_hash, "--", name]), **kwargs)
136
137 def GitCheckoutFileSafe(self, name, branch_or_hash, **kwargs):
138 try:
139 self.GitCheckoutFile(name, branch_or_hash, **kwargs)
140 except GitFailedException: # pragma: no cover
141 # The file doesn't exist in that revision.
142 return False
143 return True
144
145 def GitChangedFiles(self, git_hash, **kwargs):
146 assert git_hash

Callers

nothing calls this directly

Calls 1

GitCheckoutFileMethod · 0.95

Tested by

no test coverage detected