Skip to content

Instantly share code, notes, and snippets.

@geoffyoungs
Created November 29, 2011 11:10
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 geoffyoungs/1404436 to your computer and use it in GitHub Desktop.
Save geoffyoungs/1404436 to your computer and use it in GitHub Desktop.
Compare no of files changed in each version in git
#!/bin/bash
git tag | ruby -e 'a=b=nil;loop { a, b=ARGF.gets, a; a and b and (STDOUT << "#{a.strip} : ") and system("git diff --name-status #{b.strip} #{a.strip}| wc -l"); a.nil? and b.nil? and break }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment