@maybe_login_required
def get(self, commit_id):
    '\n        ---\n        description: Get a commit.\n        responses:\n            "200": "CommitEntity"\n            "401": "401"\n            "404": "404"\n        parameters:\n          - name: commit_id\n            in: path\n            schema:\n                type: string\n        tags:\n          - Commits\n        '
    commit = self._get(commit_id)
    return self.serializer.one.dump(commit)
---
description: Get a commit.
responses:
    "200": "CommitEntity"
    "401": "401"
    "404": "404"
parameters:
  - name: commit_id
    in: path
    schema:
        type: string
tags:
  - Commits
@maybe_login_required
def get(self, commit_id):
    '\n        ---\n        description: Get a commit.\n        responses:\n            "200": "CommitEntity"\n            "401": "401"\n            "404": "404"\n        parameters:\n          - name: commit_id\n            in: path\n            schema:\n                type: string\n        tags:\n          - Commits\n        '
    commit = self._get(commit_id)
    return self.serializer.one.dump(commit)