Minor improve to UI and code formatting of gitlab web editor

This commit is contained in:
randx 2012-10-15 19:51:11 +03:00
parent 47d9732a07
commit 809aefb828
8 changed files with 37 additions and 19 deletions

View file

@ -32,6 +32,10 @@ module Repository
Commit.commits(repo, ref, path, limit, offset)
end
def last_commit_for(ref, path = nil)
commits(ref, path, 1).first
end
def commits_between(from, to)
Commit.commits_between(repo, from, to)
end