def set_config_from_commit(self, commit):
for line in commit.message.body:<EOL><INDENT>pattern = re.compile(r"<STR_LIT>")<EOL>matches = pattern.match(line)<EOL>if matches and len(matches.groups()) == <NUM_LIT:1>:<EOL><INDENT>self.set_option('<STR_LIT>', '<STR_LIT:ignore>', matches.group(<NUM_LIT:1>))<EOL><DEDENT><DEDENT>
Given a git commit, applies config specified in the commit message.
            Supported:
             - gitlint-ignore: all