submodule support and closed #478
This commit is contained in:
parent
79ec08141a
commit
7df60af60e
3 changed files with 17 additions and 21 deletions
|
@ -84,7 +84,7 @@ type Entries []*TreeEntry
|
|||
|
||||
var sorter = []func(t1, t2 *TreeEntry) bool{
|
||||
func(t1, t2 *TreeEntry) bool {
|
||||
return t1.IsDir() && !t2.IsDir()
|
||||
return (t1.IsDir() || t1.IsSubModule()) && !t2.IsDir() && !t2.IsSubModule()
|
||||
},
|
||||
func(t1, t2 *TreeEntry) bool {
|
||||
return t1.name < t2.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue