Public/Get-GitFiles.ps1
function Get-GitFiles { param( [string]$Path ) Assert-Tool 'git' $Res = Invoke-Shell "git ls-files" 'git' -Result -WorkingDirectory $Path -NoEcho $Files = ($Res -replace "`r", "") -split "`n" | ForEach-Object { $_.Trim() } | Where-Object { $_ } RETURN $Files } |