Created
December 28, 2016 02:30
-
-
Save hitode909/fcfc51d2cdfd3f852d4c3745f1dc8b28 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# git ls-files | ruby theseus.rb | sort | uniq -c | |
require 'time' | |
ARGF.each_line.each_with_index {|file, index| | |
blame = `git blame -c #{file}`.encode('utf-8', invalid: :replace, undef: :replace, replace: '').split(/\n/) | |
blame.each{|line| | |
puts Time.parse(line.split(/\t/)[2]).year | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment