Skip to content

Instantly share code, notes, and snippets.

@grantr
Last active May 1, 2020 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grantr/1cb1c6711e60b5bbc3a71f6a5a2efbd3 to your computer and use it in GitHub Desktop.
Save grantr/1cb1c6711e60b5bbc3a71f6a5a2efbd3 to your computer and use it in GitHub Desktop.
#!/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