Skip to content

Commit f496a1e

Browse files
authored
Merge pull request #176 from erizocosmico/feature/commit-tree-hash
gitquery: add tree_hash column to commits table
2 parents 12085e5 + adb0a1c commit f496a1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

commits.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ var commitsSchema = sql.Schema{
2222
{Name: "committer_email", Type: sql.Text, Nullable: false, Source: commitsTableName},
2323
{Name: "committer_when", Type: sql.Timestamp, Nullable: false, Source: commitsTableName},
2424
{Name: "message", Type: sql.Text, Nullable: false, Source: commitsTableName},
25+
{Name: "tree_hash", Type: sql.Text, Nullable: false, Source: commitsTableName},
2526
}
2627

2728
var _ sql.PushdownProjectionAndFiltersTable = (*commitsTable)(nil)
@@ -166,5 +167,6 @@ func commitToRow(c *object.Commit) sql.Row {
166167
c.Committer.Email,
167168
c.Committer.When,
168169
c.Message,
170+
c.TreeHash.String(),
169171
)
170172
}

0 commit comments

Comments
 (0)