MCPcopy Create free account
hub / github.com/git/git / generateTempFile

Method generateTempFile

git-p4.py:1485–1490  ·  view source on GitHub ↗
(self, contents)

Source from the content-addressed store, hash-verified

1483 )
1484
1485 def generateTempFile(self, contents):
1486 contentFile = tempfile.NamedTemporaryFile(prefix='git-p4-large-file', delete=False)
1487 for d in contents:
1488 contentFile.write(d)
1489 contentFile.close()
1490 return contentFile.name
1491
1492 def exceedsLargeFileThreshold(self, relPath, contents):
1493 if gitConfigInt('git-p4.largeFileThreshold'):

Callers 2

processContentMethod · 0.95

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected