

@staticmethod
def from_commit_msg(commit_msg_str):
    ' Determines git context based on a commit message.\n        :param commit_msg_str: Full git commit message.\n        '
    commit_msg_obj = GitCommitMessage.from_full_message(commit_msg_str)
    is_merge_commit = commit_msg_obj.title.startswith('Merge')
    commit = GitCommit(commit_msg_obj, is_merge_commit=is_merge_commit)
    context = GitContext()
    context.commits.append(commit)
    return commit_msg_str

dataset/ETHPy150Open jorisroovers/gitlint/gitlint/git.py GitContext.from_commit_msg/VarMisuse@62/146 `context`->`commit_msg_str`