src-d / gitbase

SQL interface to git repositories, written in Go. https://docs.sourced.tech/gitbase
Apache License 2.0
2.07k stars 123 forks source link

Commit_file_stats return the same as commit_stats #925

Closed ajnavarro closed 5 years ago

ajnavarro commented 5 years ago

Example:

mysql> select commit_file_stats(repository_id,commit_hash) from commits limit 1;
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| commit_stats(commits.repository_id, commits.commit_hash)                                                                                                                                                     |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| {"Files":1,"Code":{"Additions":0,"Deletions":0},"Comment":{"Additions":0,"Deletions":0},"Blank":{"Additions":0,"Deletions":0},"Other":{"Additions":25,"Deletions":0},"Total":{"Additions":25,"Deletions":0}} |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.03 sec)