MCPcopy
hub / github.com/go-git/go-git / Add

Method Add

worktree.go:1093–1095  ·  view source on GitHub ↗
(e *index.Entry)

Source from the content-addressed store, hash-verified

1091}
1092
1093func (b *indexBuilder) Add(e *index.Entry) {
1094 b.entries[e.Name] = e
1095}
1096
1097func (b *indexBuilder) Remove(name string) {
1098 delete(b.entries, filepath.ToSlash(name))

Callers 15

createCommitFunction · 0.45
TestPushDepthMethod · 0.45
TestUseRefDeltasMethod · 0.45
CommitNewFileFunction · 0.45
resetIndexMethod · 0.45
addIndexFromTreeEntryMethod · 0.45
addIndexFromFileMethod · 0.45
TestPullFastForwardMethod · 0.45
TestCheckoutSymlinkMethod · 0.45

Calls

no outgoing calls

Tested by 15

createCommitFunction · 0.36
TestPushDepthMethod · 0.36
TestUseRefDeltasMethod · 0.36
CommitNewFileFunction · 0.36
TestPullFastForwardMethod · 0.36
TestCheckoutSymlinkMethod · 0.36