MCPcopy Create free account
hub / github.com/go-git/go-git / Add

Method Add

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

Source from the content-addressed store, hash-verified

1118}
1119
1120func (b *indexBuilder) Add(e *index.Entry) {
1121 b.entries[e.Name] = e
1122}
1123
1124func (b *indexBuilder) Remove(name string) {
1125 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
TestCheckoutSymlinkMethod · 0.45

Calls

no outgoing calls

Tested by 15

createCommitFunction · 0.36
TestPushDepthMethod · 0.36
TestUseRefDeltasMethod · 0.36
CommitNewFileFunction · 0.36
TestCheckoutSymlinkMethod · 0.36
TestAddSymlinkMethod · 0.36