% relroot = '../' * (len(repo.branch.split('/')) - 1) git » {{repo.name}} » {{repo.branch}}

git » {{repo.name}} » {{repo.branch}}

Browse current source tree

% commits = repo.commits("refs/heads/" + repo.branch, % limit = repo.info.commits_per_page + 1, % offset = repo.info.commits_per_page * offset) % commits = list(commits) % if len(commits) == 0: % abort(404, "No more commits") % end % more = len(commits) > repo.info.commits_per_page % if more: % commits = commits[:-1] % end % more = more and offset + 1 < repo.info.max_pages % include paginate more = more, offset = offset % kwargs = dict(repo=repo, commits=commits, % shorten=shorten, repo_root=relroot + "../..") % include commit-list **kwargs

% include paginate more = more, offset = offset