MCPcopy Create free account
hub / github.com/driusan/dgit / Add

Function Add

git/add.go:29–144  ·  view source on GitHub ↗

Add implements the "git add" plumbing command.

(c *Client, opts AddOptions, files []File)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 12

AddFunction · 0.92
TestRevertFunction · 0.70
TestUnidiffApplyFunction · 0.70
TestCheckoutIndexFunction · 0.70
testMergeBaseSimpleSetupFunction · 0.70
TestSimpleCommitsFunction · 0.70
TestCommitAmendFunction · 0.70
TestResetFilesFunction · 0.70
TestStatusFunction · 0.70
TestGrepFunction · 0.70
CommitFunction · 0.70
TestCheckoutBranchFunction · 0.70

Calls 15

GeneratePatchFunction · 0.85
splitPatchFunction · 0.85
filterHunksFunction · 0.85
recombinePatchFunction · 0.85
FileTypeAlias · 0.85
RemoveMethod · 0.80
NameMethod · 0.80
ReadIndexMethod · 0.80
FilePathMethod · 0.80
DiffFilesFunction · 0.70
ApplyFunction · 0.70
LsFilesFunction · 0.70

Tested by 10

TestRevertFunction · 0.56
TestUnidiffApplyFunction · 0.56
TestCheckoutIndexFunction · 0.56
testMergeBaseSimpleSetupFunction · 0.56
TestSimpleCommitsFunction · 0.56
TestCommitAmendFunction · 0.56
TestResetFilesFunction · 0.56
TestStatusFunction · 0.56
TestGrepFunction · 0.56
TestCheckoutBranchFunction · 0.56