Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/go-git/go-git
/ Remove
Method
Remove
worktree.go:1124–1126 ·
view source on GitHub ↗
(name string)
Source
from the content-addressed store, hash-verified
1122
}
1123
1124
func
(b *indexBuilder) Remove(name string) {
1125
delete(b.entries, filepath.ToSlash(name))
1126
}
Callers
15
NewRepositoryWithEmptyWorktree
Method · 0.45
resetIndex
Method · 0.45
checkoutChangeRegularFile
Method · 0.45
addIndexFromTreeEntry
Method · 0.45
addIndexFromFile
Method · 0.45
doClean
Method · 0.45
removeDirIfEmpty
Function · 0.45
TestFilenameNormalization
Method · 0.45
TestResetHardWithGitIgnore
Method · 0.45
TestStatusDeleted
Method · 0.45
TestAddRemoved
Method · 0.45
TestAddRemovedInDirectory
Method · 0.45
Calls
no outgoing calls
Tested by
12
NewRepositoryWithEmptyWorktree
Method · 0.36
TestFilenameNormalization
Method · 0.36
TestResetHardWithGitIgnore
Method · 0.36
TestStatusDeleted
Method · 0.36
TestAddRemoved
Method · 0.36
TestAddRemovedInDirectory
Method · 0.36
TestAddRemovedInDirectoryWithTrailingSlash
Method · 0.36
TestAddRemovedInDirectoryDot
Method · 0.36
TestRemoveDeletedFromWorktree
Method · 0.36
TestRemoveGlobDirectoryDeleted
Method · 0.36
TestGitSubmodulesSymlink
Method · 0.36
TestRemoveAndCommitAll
Method · 0.36