def commits(self, branch, since = <NUM_LIT:0>, to = int(time.time()) + <NUM_LIT>):
<EOL>self.repo.create_head(branch, "<STR_LIT>" % branch)<EOL>since_str = datetime.datetime.fromtimestamp(since).strftime('<STR_LIT>')<EOL>commits = {}<EOL>for commit in self.repo.iter_commits(branch, since=since_str):<EOL><INDENT>if commit.committed_date > to:<EOL><INDENT>continue<EOL><DEDENT>commits[commit.hexsha] = self._commitData(commit)<EOL><DEDENT>return commits<EOL>
For given branch return a list of commits.
        Each commit contains basic information about itself.

        :param branch: git branch
        :type  branch: [str]{}
        :param since: minimal timestamp for commit's commit date
        :type  since: int
        :param to: maximal timestamp for commit's commit date
        :type  to: int