Parent

Methods

Files

Git::Status::StatusFile

Attributes

path[RW]
type[RW]
stage[RW]
untracked[RW]
mode_index[RW]
mode_repo[RW]
sha_index[RW]
sha_repo[RW]

Public Class Methods

new(base, hash) click to toggle source
    # File lib/git/status.rb, line 57
57:       def initialize(base, hash)
58:         @base = base
59:         @path = hash[:path]
60:         @type = hash[:type]
61:         @stage = hash[:stage]
62:         @mode_index = hash[:mode_index]
63:         @mode_repo = hash[:mode_repo]
64:         @sha_index = hash[:sha_index]
65:         @sha_repo = hash[:sha_repo]
66:         @untracked = hash[:untracked]
67:       end

Public Instance Methods

blob(type = :index) click to toggle source
    # File lib/git/status.rb, line 69
69:       def blob(type = :index)
70:         if type == :repo
71:           @base.object(@sha_repo)
72:         else
73:           @base.object(@sha_index) rescue @base.object(@sha_repo)
74:         end
75:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.