Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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