summaryrefslogtreecommitdiffstats
path: root/lib/git/log.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/log.rb')
-rw-r--r--lib/git/log.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/git/log.rb b/lib/git/log.rb
index 9437ea6..d620652 100644
--- a/lib/git/log.rb
+++ b/lib/git/log.rb
@@ -11,6 +11,7 @@ module Git
@path = nil
@count = nil
@since = nil
+ @until = nil
@between = nil
@dirty_flag = nil
@@ -39,6 +40,12 @@ module Git
return self
end
+ def until(date)
+ dirty_log
+ @until = date
+ return self
+ end
+
def between(sha1, sha2 = nil)
dirty_log
@between = [sha1, sha2]
@@ -85,7 +92,7 @@ module Git
# actually run the 'git log' command
def run_log
log = @base.lib.full_log_commits(:count => @count, :object => @object,
- :path_limiter => @path, :since => @since, :between => @between)
+ :path_limiter => @path, :since => @since, :until => @until, :between => @between)
@commits = log.map { |c| Git::Object::Commit.new(@base, c['sha'], c) }
end