@staticmethod<EOL><INDENT>def from_commit_msg(commit_msg_str):<DEDENT>
context = GitContext()<EOL>commit_msg_obj = GitCommitMessage.from_full_message(commit_msg_str)<EOL>commit = GitCommit(context, commit_msg_obj)<EOL>context.commits.append(commit)<EOL>return context<EOL>
Determines git context based on a commit message.
        :param commit_msg_str: Full git commit message.