Created
July 25, 2022 11:25
-
-
Save 2colours/946168ee4464bdf58b619fd1fa3dc20a to your computer and use it in GitHub Desktop.
Strange call
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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