Permalink
Browse files

[Bug #1] --no-limit option broken

No limit option fixed and is default. Use -l to limit.
  • Loading branch information...
1 parent 50e00a6 commit 3985ae2a1309331b57b0d298b7870b53dd69e3cb @reinh committed Apr 20, 2010
Showing with 3 additions and 5 deletions.
  1. +3 −5 bin/git-changelog
View
@@ -32,8 +32,7 @@ def get_tags
end
def annotate!(options)
- limit = options[:limit] || 20
-
+ limit = options[:limit]
assert_is_git_repo
tags = get_tags
@@ -49,9 +48,8 @@ def annotate!(options)
range << "refs/tags/#{start}"
log = git(%{log --no-merges --pretty=format:"%h %s" #{range}}).strip.split("\n")
next if log.empty?
- puts "#{start}"
- puts "=" * start.length
- puts limit ? log[0,limit] : log
+
+ puts "#{start}", "=" * start.length, limit ? log[0,limit] : log
puts " ... and #{log.size - limit} more." if limit && log.size > limit
puts
end

0 comments on commit 3985ae2

Please sign in to comment.