def modified(self):
        try:
            timestamp = float(self.repo.shell('git', 'log', '--no-merges', '-1', '--pretty=format:%at', '%s..%s' % (self.repo.master, self.refspec)).split[0].strip())
        except IndexError:
            timestamp = float(self.repo.shell('git', 'log', '--no-merges', '-1', '--pretty=format:%at', self.refspec).split[0].strip())
        return datetime.datetime.fromtimestamp(timestamp)
dataset/ETHPy150Open nowells/git-goggles/gitgoggles/git.py/Ref.modified/original