def __str__(self, date_format="%H:%M:%S %y-%m-%d %z"):
        """
        Converts to string

        :param date_format: Format date and times with this format
        :return: Pretty description of commit
        """
        hash_value = self.commit.hexsha
        date_time = self.commit.authored_datetime.strftime(date_format)
        return hash_value + " at " + date_time
def __str__ ( self , date_format = "%H:%M:%S %y-%m-%d %z" ) : hash_value = self . commit . hexsha date_time = self . commit . authored_datetime . strftime ( date_format ) return hash_value + " at " + date_time
Converts to string

        :param date_format: Format date and times with this format
        :return: Pretty description of commit