Skip to content

Instantly share code, notes, and snippets.

@2colours
Created July 25, 2022 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2colours/946168ee4464bdf58b619fd1fa3dc20a to your computer and use it in GitHub Desktop.
Save 2colours/946168ee4464bdf58b619fd1fa3dc20a to your computer and use it in GitHub Desktop.
Strange call
sub files-of-commits($projectid, @commits) {
@commits
.map: { qqx[git -C %specpath-from-projectid{$projectid} show --name-only $_] } andthen
.join: "\n" andthen
.lines
.grep(/^ \w /)
.grep({ not /^ [commit|Date|Author] / })
.unique
.map: { .&process-path($projectid) } # vs .map: *.&process-path($projectid)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment