1
0
mirror of https://github.com/go-gitea/git.git synced 2026-02-05 15:45:40 +01:00
Files
git/commit.go
无闻 2ef563ccd1 Avoid creating an array for the sole purpose of counting elements (#17)
* Avoid creating an array for the sole purpose of counting elements

Probably speeds up counting commits for git versions < 1.8.0,
although I dubt it would make a visible difference

* Fix commit count with git version < 1.8.0

With format='' the output does not end with a newline (checked)
2016-08-31 00:30:20 -07:00

6.0 KiB