combine getCommit ById and ByBranch in routers/repo/commit.go