Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
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
1
Files
Method · 0.95
Calls
1
IsFile
Method · 0.80
Tested by
no test coverage detected