Sha256: 381eceb68907ab83cb2e40bf38fda96b89340be426e34b63a375bc67238e5461
Contents?: true
Size: 521 Bytes
Versions: 4
Compression:
Stored size: 521 Bytes
Contents
# coding: utf-8 module Githelp def git_log_wc(since,file) begin `git log --oneline --since='#{since}' #{file} | wc` rescue nil end end def changed(since) files(true).find_all { |file| wc = git_log_wc(since,file) if wc wc !~ / 0 / else false end } end def unchanged(since) files(true).find_all { |file| wc = git_log_wc(since,file) if wc wc =~ / 0 / else false end } end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
githelp-0.1.4 | lib/githelp/changes.rb |
githelp-0.1.3 | lib/githelp/changes.rb |
githelp-0.1.2 | lib/githelp/changes.rb |
githelp-0.1.1 | lib/githelp/changes.rb |