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/Log.html | 373 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 373 insertions(+) create mode 100644 doc/classes/Git/Log.html (limited to 'doc/classes/Git/Log.html') diff --git a/doc/classes/Git/Log.html b/doc/classes/Git/Log.html new file mode 100644 index 0000000..08fff11 --- /dev/null +++ b/doc/classes/Git/Log.html @@ -0,0 +1,373 @@ + + + + + + Class: Git::Log + + + + + + + + + + +
+ + + + + + + + + + + + + + +
ClassGit::Log
In: + + lib/git/log.rb + +
+
Parent: + + Object + +
+
+ + +
+ + + +
+ +
+

+object that holds the last X commits on given branch +

+ +
+ + +
+ +
+

Methods

+ +
+ between   + each   + first   + new   + object   + path   + since   + size   + to_s   +
+
+ +
+ + + +
+

Included Modules

+ +
+ Enumerable +
+
+ +
+ + + + + + + + + +
+

Public Class methods

+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/log.rb, line 18
+    def initialize(base, count = 30)
+      dirty_log
+      @base = base
+      @count = count
+    end
+
+
+
+
+ +

Public Instance methods

+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/log.rb, line 42
+    def between(sha1, sha2 = nil)
+      dirty_log
+      @between = [@base.lib.revparse(sha1), @base.lib.revparse(sha2)]
+      return self
+    end
+
+
+
+
+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/log.rb, line 60
+    def each
+      check_log
+      @commits.each do |c|
+        yield c
+      end
+    end
+
+
+
+
+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/log.rb, line 67
+    def first
+      check_log
+      @commits.first rescue nil
+    end
+
+
+
+
+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/log.rb, line 24
+    def object(objectish)
+      dirty_log
+      @object = objectish
+      return self
+    end
+
+
+
+
+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/log.rb, line 30
+    def path(path)
+      dirty_log
+      @path = path
+      return self
+    end
+
+
+
+
+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/log.rb, line 36
+    def since(date)
+      dirty_log
+      @since = date
+      return self
+    end
+
+
+
+
+ +
+ + + + +
+

+forces git log to run +

+

[Source]

+
+
+# File lib/git/log.rb, line 55
+    def size
+      check_log
+      @commits.size rescue nil
+    end
+
+
+
+
+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/log.rb, line 48
+    def to_s
+      self.map { |c| c.sha }.join("\n")
+    end
+
+
+
+
+ + +
+ + +
+ + +
+

[Validate]

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