

def get_staging_status(self, repo, filename):
    output = self.git_string(['diff', '--name-status', '--cached', '--', filename], cwd=repo)
    if output:
        (status, _) = output.split('\t')
        return status

dataset/ETHPy150Open SublimeGit/SublimeGit/sgit/status.py GitStatusDiscardCommand.get_staging_status/original