]> nos-oignons.net Git - gestion-adh.git/blob - lib/nos_oignons/git.rb
Silence git commands in cucumber step definitions
[gestion-adh.git] / lib / nos_oignons / git.rb
1 def handle_modified_files(io)
2   io.readlines.each do |line|
3     status, file = line.strip.split("\t", 2)
4     # Has file been added or modified?
5     if ['A', 'M'].include?(status)
6       yield file
7     end
8   end
9 end