예제 #1
0
파일: gittle.py 프로젝트: rubik/gittle
 def get_previous_commit(self, commit_ref, n=None):
     commit_sha = self._parse_reference(commit_ref)
     n = n or 1
     commits = self.commits()
     return funky.next(commits, commit_sha, n=n, default=commit_sha)
예제 #2
0
 def get_previous_commit(self, commit_ref, n=None):
     commit_sha = self._parse_reference(commit_ref)
     n = n or 1
     commits = self.commits()
     return funky.next(commits, commit_sha, n=n, default=commit_sha)