def commit(self, message, author=None):
<EOL>self.ensure_exists()<EOL>self.ensure_working_tree()<EOL>logger.info("<STR_LIT>", format_path(self.local), message)<EOL>author = coerce_author(author) if author else self.author<EOL>self.context.execute(*self.get_commit_command(message, author))<EOL>
Commit changes to tracked files in the working tree.

:param message: The commit message (a string).
:param author: Override :attr:`author` (refer to
               :func:`coerce_author()` for details
               on argument handling).