@staticmethod<EOL><INDENT>def gitcommit(commit_msg_str, changed_files=None, **kwargs):<DEDENT>
gitcontext = BaseTestCase.gitcontext(commit_msg_str, changed_files)<EOL>commit = gitcontext.commits[-<NUM_LIT:1>]<EOL>for attr, value in kwargs.items():<EOL><INDENT>setattr(commit, attr, value)<EOL><DEDENT>return commit<EOL>
Utility method to easily create git commit given a commit msg string and an optional set of changed files