Method: GitUI#changes
- Defined in:
- lib/git_ui.rb
#changes ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'lib/git_ui.rb', line 47 def changes IO.popen('git diff --raw', 'r').readlines.grep(/^:/).map { |l| src_mode, dst_mode, src_sha1, dst_sha1, status, src_path, dst_path = l.sub(/^:/, '').split(/\s+/) { :status => status, :filename => (dst_path || src_path).chomp, } } end |