wxiaoguang c08e42c47e
Refactor parseTreeEntries, speed up tree list ()
Close  (fix the panic when parsing invalid input), Speed up  (use ls-tree without size field)

Introduce ListEntriesRecursiveFast (ls-tree without size) and ListEntriesRecursiveWithSize (ls-tree with size)
..
cherry_pick.go Allow API to create file on empty repo ()
commit.go Move some code into models/git ()
content.go Add latest commit's SHA to content response ()
content_test.go Add latest commit's SHA to content response ()
delete.go Allow API to create file on empty repo ()
diff.go Propagate context and ensure git commands run in request context ()
diff_test.go Calculate filename hash only once ()
file.go Propagate context and ensure git commands run in request context ()
file_test.go Add latest commit's SHA to content response ()
patch.go Move some code into models/git ()
temp_repo.go Remove legacy git code (ver < 2.0), fine tune markup tests ()
tree.go Refactor parseTreeEntries, speed up tree list ()
tree_test.go Propagate context and ensure git commands run in request context ()
update.go Move some code into models/git ()
upload.go Move some files into models' sub packages ()