Also add the new method in the gogit version

This commit is contained in:
delvh 2024-01-17 20:58:20 +01:00
parent 429fac5a50
commit 3dbee79533
No known key found for this signature in database
GPG Key ID: 3DECE05F6D9A647C
2 changed files with 5 additions and 0 deletions

View File

@ -55,6 +55,10 @@ func (te *TreeEntry) Size() int64 {
return te.size
}
func (te *TreeEntry) FullPath() bool {
return te.Name()
}
// IsSubModule if the entry is a sub module
func (te *TreeEntry) IsSubModule() bool {
return te.gogitTreeEntry.Mode == filemode.Submodule

View File

@ -55,6 +55,7 @@ func (te *TreeEntry) Size() int64 {
te.sized = true
return te.size
}
func (te *TreeEntry) FullPath() string {
if te.fullName == "" {
return te.Name()