@@ -197,7 +197,7 @@ def blame(self, commit, file):
197197 # END distinguish hexsha vs other information
198198 return blames
199199
200- def commits (self , start = 'master' , path = '' , max_count = 10 , skip = 0 ):
200+ def commits (self , start = 'master' , path = '' , max_count = None , skip = 0 ):
201201 """
202202 A list of Commit objects representing the history of a given ref/commit
203203
@@ -209,7 +209,7 @@ def commits(self, start='master', path='', max_count=10, skip=0):
209209 Commits that do not contain that path will not be returned.
210210
211211 ``max_count``
212- is the maximum number of commits to return (default 10 )
212+ is the maximum number of commits to return (default None )
213213
214214 ``skip``
215215 is the number of commits to skip (default 0) which will effectively
@@ -220,7 +220,10 @@ def commits(self, start='master', path='', max_count=10, skip=0):
220220 """
221221 options = {'max_count' : max_count ,
222222 'skip' : skip }
223-
223+
224+ if max_count is None :
225+ options .pop ('max_count' )
226+
224227 return Commit .list_items (self , start , path , ** options )
225228
226229 def commits_between (self , frm , to ):
0 commit comments