From 646304a6e7c3b2c442a0a7db995629e7009c3a14 Mon Sep 17 00:00:00 2001 From: scott Chacon Date: Sun, 11 Nov 2007 17:59:18 -0800 Subject: added documentation and a license file --- doc/classes/Git/Status/StatusFile.html | 232 +++++++++++++++++++++++++++++++++ 1 file changed, 232 insertions(+) create mode 100644 doc/classes/Git/Status/StatusFile.html (limited to 'doc/classes/Git/Status/StatusFile.html') diff --git a/doc/classes/Git/Status/StatusFile.html b/doc/classes/Git/Status/StatusFile.html new file mode 100644 index 0000000..c1a0b2f --- /dev/null +++ b/doc/classes/Git/Status/StatusFile.html @@ -0,0 +1,232 @@ + + + + + + Class: Git::Status::StatusFile + + + + + + + + + + +
+ + + + + + + + + + + + + + +
ClassGit::Status::StatusFile
In: + + lib/git/status.rb + +
+
Parent: + Object +
+
+ + +
+ + + +
+ + + +
+ +
+

Methods

+ +
+ blob   + new   +
+
+ +
+ + + + +
+ + + + + +
+

Attributes

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

Public Class methods

+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/status.rb, line 64
+      def initialize(base, hash)
+        @base = base
+        @path = hash[:path]
+        @type = hash[:type]
+        @stage = hash[:stage]
+        @mode_index = hash[:mode_index]
+        @mode_repo = hash[:mode_repo]
+        @sha_index = hash[:sha_index]
+        @sha_repo = hash[:sha_repo]
+        @untracked = hash[:untracked]
+      end
+
+
+
+
+ +

Public Instance methods

+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/status.rb, line 76
+      def blob(type = :index)
+        if type == :repo
+          @base.object(@sha_repo)
+        else
+          @base.object(@sha_index) rescue @base.object(@sha_repo)
+        end
+      end
+
+
+
+
+ + +
+ + +
+ + +
+

[Validate]

+
+ + + \ No newline at end of file -- cgit