Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1093
func
(b *indexBuilder) Add(e *index.Entry) {
1094
b.entries[e.Name] = e
1095
}
1096
1097
func
(b *indexBuilder) Remove(name string) {
1098
delete(b.entries, filepath.ToSlash(name))
Callers
15
createCommit
Function · 0.45
TestPushDepth
Method · 0.45
TestUseRefDeltas
Method · 0.45
TestFetchFastForwardForCustomRef
Function · 0.45
CommitNewFile
Function · 0.45
resetIndex
Method · 0.45
addIndexFromTreeEntry
Method · 0.45
addIndexFromFile
Method · 0.45
TestPullFastForward
Method · 0.45
TestPullNonFastForward
Method · 0.45
TestPullAlreadyUptodate
Method · 0.45
TestCheckoutSymlink
Method · 0.45
Calls
no outgoing calls
Tested by
15
createCommit
Function · 0.36
TestPushDepth
Method · 0.36
TestUseRefDeltas
Method · 0.36
TestFetchFastForwardForCustomRef
Function · 0.36
CommitNewFile
Function · 0.36
TestPullFastForward
Method · 0.36
TestPullNonFastForward
Method · 0.36
TestPullAlreadyUptodate
Method · 0.36
TestCheckoutSymlink
Method · 0.36
TestCheckoutSymlinkArbitraryTarget
Function · 0.36
TestFilenameNormalization
Method · 0.36
TestCheckoutRelativePathSubmoduleInitialized
Method · 0.36