|
55 | 55 | r.repository_id as repo_id,
|
56 | 56 | committer_email
|
57 | 57 | FROM repositories r
|
58 |
| - INNER JOIN refs |
| 58 | + INNER JOIN refs |
59 | 59 | ON refs.repository_id = r.repository_id AND refs.ref_name = 'HEAD'
|
60 |
| - INNER JOIN commits c |
| 60 | + INNER JOIN commits c |
61 | 61 | ON YEAR(committer_when) = 2015 AND history_idx(refs.commit_hash, c.commit_hash) >= 0
|
62 | 62 | ) as t
|
63 | 63 | GROUP BY committer_email, month, repo_id
|
@@ -133,14 +133,15 @@ gitbase exposes the following tables:
|
133 | 133 |
|
134 | 134 | | Name | Columns |
|
135 | 135 | |:-------------|:------------------------------------------------------------------------------------------------------------------|
|
136 |
| -| repositories | repository_id | |
137 |
| -| remotes | repository_id, remote_name, remote_push_url, remote_fetch_url, remote_push_refspec, remote_fetch_refspec | |
| 136 | +| repositories | repository_id | |
| 137 | +| remotes | repository_id, remote_name, remote_push_url, remote_fetch_url, remote_push_refspec, remote_fetch_refspec | |
138 | 138 | | commits | repository_id, commit_hash, commit_author_name, commit_author_email, commit_author_when, committer_name, committer_email, committer_when, commit_message, tree_hash |
|
139 |
| -| blobs | repository_id, blob_hash, blob_size, blob_content | |
140 |
| -| refs | repository_id, ref_name, commit_hash | |
141 |
| -| tree_entries | repository_id, tree_hash, blob_hash, tree_entry_mode, tree_entry_name | |
142 |
| -| references | repository_id, ref_name, commit_hash | |
143 |
| -| commit_trees | repository_id, commit_hash, tree_hash | |
| 139 | +| blobs | repository_id, blob_hash, blob_size, blob_content | |
| 140 | +| refs | repository_id, ref_name, commit_hash | |
| 141 | +| tree_entries | repository_id, tree_hash, blob_hash, tree_entry_mode, tree_entry_name | |
| 142 | +| references | repository_id, ref_name, commit_hash | |
| 143 | +| ref_commits | repository_id, commit_hash, ref_name, index | |
| 144 | +| commit_trees | repository_id, commit_hash, tree_hash | |
144 | 145 |
|
145 | 146 | ## Functions
|
146 | 147 |
|
|
0 commit comments