Skip to content

Commit 3dbee79

Browse files
committed
Also add the new method in the gogit version
1 parent 429fac5 commit 3dbee79

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

modules/git/tree_entry_gogit.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ func (te *TreeEntry) Size() int64 {
5555
return te.size
5656
}
5757

58+
func (te *TreeEntry) FullPath() bool {
59+
return te.Name()
60+
}
61+
5862
// IsSubModule if the entry is a sub module
5963
func (te *TreeEntry) IsSubModule() bool {
6064
return te.gogitTreeEntry.Mode == filemode.Submodule

modules/git/tree_entry_nogogit.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ func (te *TreeEntry) Size() int64 {
5555
te.sized = true
5656
return te.size
5757
}
58+
5859
func (te *TreeEntry) FullPath() string {
5960
if te.fullName == "" {
6061
return te.Name()

0 commit comments

Comments
 (0)