Skip to content

Instantly share code, notes, and snippets.

@josephwilk
Created June 8, 2011 11:15
Show Gist options
  • Select an option

  • Save josephwilk/1014223 to your computer and use it in GitHub Desktop.

Select an option

Save josephwilk/1014223 to your computer and use it in GitHub Desktop.
feature_file = ARGV[0]
changes = `git log --oneline #{feature_file}`
puts "#{feature_file} changed: #{changes.split("\n").length}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment