struct

Noir::GitSnapshot::Snapshot

Inherits Struct < Value < Object

root is the scratch directory to delete when the scan is done; bases[i] is where the old side of base_paths[i] lives inside it.

Constructors

new(root : String, commit : String, bases : Array(String))
Source

Instance methods

bases
clone
Source
commit
copy_with(root _root = @root, commit _commit = @commit, bases _bases = @bases)
Source
relocate(endpoints : Array(Endpoint), originals : Array(String)) : Array(Endpoint)

Rewrites every code path under bases[i] to sit under originals[i] instead, so endpoints scanned out of the scratch checkout name the file where the user would look for it.

Source
root