Class: RIM::GitSession::Status::Line
- Inherits:
-
Object
- Object
- RIM::GitSession::Status::Line
- Defined in:
- lib/rim/git.rb
Overview
X Y Meaning
[MD] not updated
M [ MD] updated in index A [ MD] added to index D [ M] deleted from index R [ MD] renamed in index C [ MD] copied in index
- MARC
-
index and work tree matches
- MARC
-
M work tree changed since index
- MARC
-
D deleted in work tree
D D unmerged, both deleted A U unmerged, added by us U D unmerged, deleted by them U A unmerged, added by them D U unmerged, deleted by us A A unmerged, both added U U unmerged, both modified
? ? untracked ! ! ignored
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#istat ⇒ Object
Returns the value of attribute istat.
-
#rename ⇒ Object
Returns the value of attribute rename.
-
#wstat ⇒ Object
Returns the value of attribute wstat.
Instance Method Summary collapse
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
71 72 73 |
# File 'lib/rim/git.rb', line 71 def file @file end |
#istat ⇒ Object
Returns the value of attribute istat.
71 72 73 |
# File 'lib/rim/git.rb', line 71 def istat @istat end |
#rename ⇒ Object
Returns the value of attribute rename.
71 72 73 |
# File 'lib/rim/git.rb', line 71 def rename @rename end |
#wstat ⇒ Object
Returns the value of attribute wstat.
71 72 73 |
# File 'lib/rim/git.rb', line 71 def wstat @wstat end |
Instance Method Details
#ignored? ⇒ Boolean
77 78 79 |
# File 'lib/rim/git.rb', line 77 def ignored? istat == "!" && wstat == "!" end |
#unmerged? ⇒ Boolean
81 82 83 84 85 86 |
# File 'lib/rim/git.rb', line 81 def unmerged? istat == "D" && wstat == "D" || istat == "A" && wstat == "A" || istat == "U" || wstat == "U" end |
#untracked? ⇒ Boolean
73 74 75 |
# File 'lib/rim/git.rb', line 73 def untracked? istat == "?" && wstat == "?" end |