Skip to content

Instantly share code, notes, and snippets.

@tatsuru
Created April 17, 2013 06:03
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 tatsuru/5402106 to your computer and use it in GitHub Desktop.
Save tatsuru/5402106 to your computer and use it in GitHub Desktop.
files = `git diff --name-only \`git describe --abbrev=0 --tags 'HEAD'\` \`git describe --abbrev=0 --tags 'HEAD^'\` #{local_cookbook_path}`.chomp.split("\n")
updated_cookbooks = files.map { |f| f.sub(/^cookbooks\/([^\/]+)\/.*$/, '\1')}.uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment