Class: RIM::GitSession::Status::Line

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#fileObject

Returns the value of attribute file.



71
72
73
# File 'lib/rim/git.rb', line 71

def file
  @file
end

#istatObject

Returns the value of attribute istat.



71
72
73
# File 'lib/rim/git.rb', line 71

def istat
  @istat
end

#renameObject

Returns the value of attribute rename.



71
72
73
# File 'lib/rim/git.rb', line 71

def rename
  @rename
end

#wstatObject

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

Returns:

  • (Boolean)


77
78
79
# File 'lib/rim/git.rb', line 77

def ignored?
  istat == "!" && wstat == "!"
end

#unmerged?Boolean

Returns:

  • (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

Returns:

  • (Boolean)


73
74
75
# File 'lib/rim/git.rb', line 73

def untracked?
  istat == "?" && wstat == "?"
end