Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
schema: Support more checkout data in v4.5
Add support for three more checkout fields: `git_commit_tags`, `git_commit_message`, and `git_repository_branch_tip`. The `git_commit_tags` is an array of strings representing annotated tags pointing directly at the commit being checked out, as seen in the source repository. I.e. the output of `git tag --points-at <commit>`. Set to an empty array, if the commit has no tags. The `git_commit_message` is intended to hold the complete message of the commit being checked out, *both* subject and body. I.e. the output of `git show -s --format=%B`. We're putting the subject and the body together, as it's quite easy to extract the subject in SQL, while full-text search is easier and more efficient to do over a single column. Finally, the `git_repository_branch_tip` is a boolean flag, which should be set to `true`, when the commit being checked out is at the tip of the branch at the moment of the checkout (as specified in `start_time`). Essentially, if you're always testing only the tip of the branch, you can set this to `true` unconditionally. This flag would let us extract the checkouts which represented the branch state over time, and produce a rough history of branch changes, which we can then use for (regression) analysis and graphs, in lieu of actual commit graph walking.
- Loading branch information