code: def commit(self, commit):
  		
  		try:
  			return self._commitData(self.repo.commit(commit))
  		except (ValueError, KeyError, BadObject):
  			if self._repo_info:
  				raise KeyError("Commit %s not found for %s" % (commit, str(self._repo_info)))
  			else:
  				raise KeyError("Commit %s not found" % commit)
docs: Get data for a given commit
  
  		Raises KeyError if a commit is not found or not parsed.
  
  		:param commit: repository commit
  		:type  commit: string