mirror of
https://github.com/go-gitea/gitea.git
synced 2024-09-01 14:56:30 +00:00
Also add the new method in the gogit
version
This commit is contained in:
parent
429fac5a50
commit
3dbee79533
@ -55,6 +55,10 @@ func (te *TreeEntry) Size() int64 {
|
|||||||
return te.size
|
return te.size
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (te *TreeEntry) FullPath() bool {
|
||||||
|
return te.Name()
|
||||||
|
}
|
||||||
|
|
||||||
// IsSubModule if the entry is a sub module
|
// IsSubModule if the entry is a sub module
|
||||||
func (te *TreeEntry) IsSubModule() bool {
|
func (te *TreeEntry) IsSubModule() bool {
|
||||||
return te.gogitTreeEntry.Mode == filemode.Submodule
|
return te.gogitTreeEntry.Mode == filemode.Submodule
|
||||||
|
@ -55,6 +55,7 @@ func (te *TreeEntry) Size() int64 {
|
|||||||
te.sized = true
|
te.sized = true
|
||||||
return te.size
|
return te.size
|
||||||
}
|
}
|
||||||
|
|
||||||
func (te *TreeEntry) FullPath() string {
|
func (te *TreeEntry) FullPath() string {
|
||||||
if te.fullName == "" {
|
if te.fullName == "" {
|
||||||
return te.Name()
|
return te.Name()
|
||||||
|
Loading…
Reference in New Issue
Block a user