1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 02:08:36 +00:00

add submodule basic support & buf fixed #478

This commit is contained in:
lunnyxiao
2014-09-22 10:43:16 +08:00
parent 7ba9257a7f
commit 150eef93b2
7 changed files with 115 additions and 9 deletions

View File

@@ -61,6 +61,10 @@ func (te *TreeEntry) Size() int64 {
return te.size
}
func (te *TreeEntry) IsSubModule() bool {
return te.mode == ModeCommit
}
func (te *TreeEntry) IsDir() bool {
return te.mode == ModeTree
}