From 150eef93b2340f665c070158ade1863339829e05 Mon Sep 17 00:00:00 2001 From: lunnyxiao Date: Mon, 22 Sep 2014 10:43:16 +0800 Subject: add submodule basic support & buf fixed #478 --- modules/git/tree_entry.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/git/tree_entry.go') diff --git a/modules/git/tree_entry.go b/modules/git/tree_entry.go index e842f2332a..f65f332666 100644 --- a/modules/git/tree_entry.go +++ b/modules/git/tree_entry.go @@ -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 } -- cgit v1.2.3