def status(git_config, verbose=False):
    """Return 0 if nbstripout is installed in the current repo, 1 otherwise"""
    from os import path
    from subprocess import check_output, CalledProcessError
    try:
        git_dir = path.dirname(path.abspath(check_output(['git',
            'rev-parse', '--git-dir']).strip()))
        clean = check_output(git_config + ['filter.nbstripout.clean']).strip()
        smudge = check_output(git_config + ['filter.nbstripout.smudge']).strip(
            )
        diff = check_output(git_config + ['diff.ipynb.textconv']).strip()
        attributes = check_output(['git', 'check-attr', 'filter', '--',
            '*.ipynb']).strip()
        diff_attributes = check_output(['git', 'check-attr', 'diff', '--',
            '*.ipynb']).strip()
        try:
            extra_keys = check_output(git_config + [
                'filter.nbstripout.extrakeys']).strip()
        except CalledProcessError:
            extra_keys = ''
        if attributes.endswith(b'unspecified'):
            if verbose:
                print('nbstripout is not installed in repository', git_dir)
            return 1
        if verbose:
            print('nbstripout is installed in repository', git_dir)
            print('\nFilter:')
            print('  clean =', clean)
            print('  smudge =', smudge)
            print('  diff=', diff)
            print('  extrakeys=', extra_keys)
            print('\nAttributes:\n ', attributes)
            print('\nDiff Attributes:\n ', diff_attributes)
        return 0
    except CalledProcessError:
        if verbose and 'git_dir' in locals():
            print('nbstripout is not installed in repository', git_dir)
        return 1
