Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $commitOffset = 1
- $additionThreshold = 50
- $commits = git diff HEAD HEAD~$commitOffset --numstat | ConvertFrom-Csv -Header 'Additions','Deletions','File' -Delimiter "`t"
- $commits = $commits | ? {$_.Additions -ne '-' -and $_.Additions -ne '0'}
- $commits | % { $_.Additions = [int]$_.Additions; $_.Deletions = [int]$_.Deletions }
- $commits = $commits | ? {($_.Additions - $_.Deletions_) -gt $additionThreshold}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement