Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1120
func
(b *indexBuilder) Add(e *index.Entry) {
1121
b.entries[e.Name] = e
1122
}
1123
1124
func
(b *indexBuilder) Remove(name string) {
1125
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
TestCheckoutSymlink
Method · 0.45
TestFilenameNormalization
Method · 0.45
TestCheckoutRelativePathSubmoduleInitialized
Method · 0.45
TestStatusCheckedInBeforeIgnored
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
TestCheckoutSymlink
Method · 0.36
TestFilenameNormalization
Method · 0.36
TestCheckoutRelativePathSubmoduleInitialized
Method · 0.36
TestStatusCheckedInBeforeIgnored
Method · 0.36
TestAddSymlink
Method · 0.36
TestAddDirectoryErrorNotFound
Method · 0.36
TestResetLingeringDirectories
Method · 0.36