MCPcopy Index your code
hub / github.com/driusan/dgit / WriteFile

Method WriteFile

git/client.go:67–69  ·  view source on GitHub ↗

WriteFile writes data to the file f, using permission perm for the file if it does not already exist. WriteFile will overwrite existing file contents.

(f File, data []byte, perm os.FileMode)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

TestRevertFunction · 0.45
TestUnidiffApplyFunction · 0.45
TestCheckoutIndexFunction · 0.45
checkoutFileFunction · 0.45
TestUpdateIndexFunction · 0.45
TestUpdateIndexSymlinksFunction · 0.45
testMergeBaseSimpleSetupFunction · 0.45
copyFromIndexFunction · 0.45
IndexPackFunction · 0.45
TestSimpleCommitsFunction · 0.45
TestCommitAmendFunction · 0.45
InitFunction · 0.45

Calls 2

FileMethod · 0.95
StringMethod · 0.65

Tested by 14

TestRevertFunction · 0.36
TestUnidiffApplyFunction · 0.36
TestCheckoutIndexFunction · 0.36
TestUpdateIndexFunction · 0.36
TestUpdateIndexSymlinksFunction · 0.36
testMergeBaseSimpleSetupFunction · 0.36
TestSimpleCommitsFunction · 0.36
TestCommitAmendFunction · 0.36
TestResetFilesFunction · 0.36
TestLsFilesFunction · 0.36
TestStatusFunction · 0.36
TestGrepFunction · 0.36