Last active
May 1, 2020 00:01
-
-
Save grantr/1cb1c6711e60b5bbc3a71f6a5a2efbd3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env bash | |
git diff --stat=260 master.. vendor > updates.txt | |
/usr/bin/env ruby -e 'ARGF.each_line do |line| | |
next if line !~ /\.go\s/ | |
dirs = line.split("/") | |
if dirs[1] == "github.com" | |
puts "#{dirs[1]}/#{dirs[2]}/#{dirs[3]}" | |
else | |
puts "#{dirs[1]}/#{dirs[2]}" | |
end | |
end' updates.txt | uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment