Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/go-git/go-git
/ Empty
Method
Empty
plumbing/object/patch.go:172–174 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
170
}
171
172
func
(f *changeEntryWrapper) Empty() bool {
173
return
!f.ce.TreeEntry.Mode.IsFile()
174
}
175
176
// textFilePatch is an implementation of fdiff.FilePatch interface
177
type
textFilePatch
struct
{
Callers
5
Files
Method · 0.95
TestWorktreeFilesystemMkdirAllRootIsNoop
Function · 0.80
TestTreeDecodeEmptyClearsExistingEntries
Function · 0.80
TestTreeDecodeClearsExistingState
Function · 0.80
TestPatchDeltaAcceptsEmptyTarget
Function · 0.80
Calls
1
IsFile
Method · 0.80
Tested by
4
TestWorktreeFilesystemMkdirAllRootIsNoop
Function · 0.64
TestTreeDecodeEmptyClearsExistingEntries
Function · 0.64
TestTreeDecodeClearsExistingState
Function · 0.64
TestPatchDeltaAcceptsEmptyTarget
Function · 0.64