Skip to content

Commit 8866a9f

Browse files
committed
gitbase: add ref_commits table to the README
Signed-off-by: Manuel Carmona <[email protected]>
1 parent 9205d9a commit 8866a9f

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

README.md

+10-9
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ FROM (
5555
r.repository_id as repo_id,
5656
committer_email
5757
FROM repositories r
58-
INNER JOIN refs
58+
INNER JOIN refs
5959
ON refs.repository_id = r.repository_id AND refs.ref_name = 'HEAD'
60-
INNER JOIN commits c
60+
INNER JOIN commits c
6161
ON YEAR(committer_when) = 2015 AND history_idx(refs.commit_hash, c.commit_hash) >= 0
6262
) as t
6363
GROUP BY committer_email, month, repo_id
@@ -133,14 +133,15 @@ gitbase exposes the following tables:
133133

134134
| Name | Columns |
135135
|:-------------|:------------------------------------------------------------------------------------------------------------------|
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 |
138138
| 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 |
144145

145146
## Functions
146147

0 commit comments

Comments
 (0)