]> nos-oignons.net Git - gestion-adh.git/blob - lib/nos_oignons/git.rb
Enable Member#filename_for_id to work with strings
[gestion-adh.git] / lib / nos_oignons / git.rb
1 module NosOignons
2   module Git
3     class << self
4       def handle_modified_files(io)
5         io.readlines.each do |line|
6           status, file = line.strip.split("\t", 2)
7           # Has file been added or modified?
8           if ['A', 'M'].include?(status)
9             yield file
10           end
11         end
12       end
13     end
14   end
15 end