'Return git data for a path
Supported keys are \'date\', \'message\', and \'author\''

def data(self, key):

    if (not self._data):
        log_line = main.model().git.log(u'-1', u'--', self.path, no_color=True, pretty=u'format:%ar%x01%s%x01%an', _readonly=True)[STDOUT]
        if log_line:
            log_line = log_line
            (date, message, author) = log_line.split(chr(1), 2)
            self._data[u'date'] = date
            self._data[u'message'] = message
            self._data[u'author'] = author
        else:
            self._data[u'date'] = self.date()
            self._data[u'message'] = u'-'
            self._data[u'author'] = self._default_author
    return self._data[key]
