@@ -100,7 +100,7 @@ def tags(self):
100
100
"""
101
101
return Tag .find_all (self )
102
102
103
- def commits (self , start = 'master' , max_count = 10 , skip = 0 ):
103
+ def commits (self , start = 'master' , max_count = 10 , skip = 0 ):
104
104
"""
105
105
A list of Commit objects representing the history of a given ref/commit
106
106
@@ -137,7 +137,7 @@ def commits_between(self, frm, to):
137
137
"""
138
138
return Commit .find_all (self , "%s..%s" % (frm , to )).reverse ()
139
139
140
- def commits_since (self , start = 'master' , since = '1970-01-01' ):
140
+ def commits_since (self , start = 'master' , since = '1970-01-01' ):
141
141
"""
142
142
The Commits objects that are newer than the specified date.
143
143
Commits are returned in chronological order.
@@ -155,7 +155,7 @@ def commits_since(self, start = 'master', since = '1970-01-01'):
155
155
156
156
return Commit .find_all (self , start , ** options )
157
157
158
- def commit_count (self , start = 'master' ):
158
+ def commit_count (self , start = 'master' ):
159
159
"""
160
160
The number of commits reachable by the given branch/commit
161
161
@@ -185,7 +185,7 @@ def commit(self, id):
185
185
raise ValueError , 'Invalid identifier %s' % id
186
186
return commits [0 ]
187
187
188
- def commit_deltas_from (self , other_repo , ref = 'master' , other_ref = 'master' ):
188
+ def commit_deltas_from (self , other_repo , ref = 'master' , other_ref = 'master' ):
189
189
"""
190
190
Returns a list of commits that is in ``other_repo`` but not in self
191
191
@@ -198,7 +198,7 @@ def commit_deltas_from(self, other_repo, ref = 'master', other_ref = 'master'):
198
198
diff_refs = list (set (other_repo_refs ) - set (repo_refs ))
199
199
return map (lambda ref : Commit .find_all (other_repo , ref , max_count = 1 )[0 ], diff_refs )
200
200
201
- def tree (self , treeish = 'master' ):
201
+ def tree (self , treeish = 'master' ):
202
202
"""
203
203
The Tree object for the given treeish reference
204
204
@@ -227,7 +227,7 @@ def blob(self, id):
227
227
"""
228
228
return Blob (self , id = id )
229
229
230
- def log (self , commit = 'master' , path = None , ** kwargs ):
230
+ def log (self , commit = 'master' , path = None , ** kwargs ):
231
231
"""
232
232
The commit log for a treeish
233
233
@@ -316,7 +316,7 @@ def fork_bare(self, path, **kwargs):
316
316
self .git .clone (self .path , path , ** options )
317
317
return Repo (path )
318
318
319
- def archive_tar (self , treeish = 'master' , prefix = None ):
319
+ def archive_tar (self , treeish = 'master' , prefix = None ):
320
320
"""
321
321
Archive the given treeish
322
322
@@ -345,7 +345,7 @@ def archive_tar(self, treeish = 'master', prefix = None):
345
345
options ['prefix' ] = prefix
346
346
return self .git .archive (treeish , ** options )
347
347
348
- def archive_tar_gz (self , treeish = 'master' , prefix = None ):
348
+ def archive_tar_gz (self , treeish = 'master' , prefix = None ):
349
349
"""
350
350
Archive and gzip the given treeish
351
351
0 commit comments