Making a new git ref to a subtree of relevant inputs for a build

by bureado
GNU/Linux ◆ xterm-256color ◆ bash 1053 views

In this demo, we detect relevant build inputs (using naive filesystem monitoring for reads) and create a new tree. But instead of pointing a commit to it, we point a new reference which is named as the build-id hash of the binary artifact. This way, someone with the binary can query the specific inputs right from native Git repository metadata.