Method: Fix::Command.git_diff_paths
- Defined in:
- lib/fix/command.rb
.git_diff_paths ⇒ Set
Returns The list of modified files.
209 210 211 212 213 214 |
# File 'lib/fix/command.rb', line 209 def self.git_diff_paths `git status --porcelain` .split("\n") .map { |p| File.absolute_path(p.split.last) } .to_set end |