def migration_0010(repo, init=False, **kwargs):
    """ Make sure that the operation.log and plugin_meta are untracked/tracked.

    * ``operation.log`` *cannot* be tracked, since if we make a change,
      followed by a stash pop, operation.log may have encountered changes
      since then.
    * ``plugin_meta`` *must* be tracked, or when we pop stash, 

    """
    if init:
        set_repo_version(repo, 10)
        return

    with open(repo.get_metadata_path('gitignore'), 'w') as out:
        out.write(
            '\n'.join(
                [
                    '.jirafs/git',
                    '.jirafs/shadow',
                    '.jirafs/operation.log'
                ]
            )
        )
    repo.run_git_command(
        'add',
        '-f',
        '.jirafs/gitignore',
    )
    try:
        os.mkdir(
            repo.get_metadata_path(
                'plugin_meta',
            )
        )
    except __HOLE__:
        # Already exists
        pass
    with open(repo.get_metadata_path('plugin_meta', '.empty'), 'w') as out:
        out.write('')
    repo.run_git_command(
        'add',
        '-f',
        repo.get_metadata_path(
            'plugin_meta',
            '.empty'
        )
    )
    repo.run_git_command(
        'rm',
        '-f',
        '--cached',
        '.jirafs/operation.log',
        failure_ok=True,
    )
    repo.run_git_command(
        'commit',
        '-m',
        'Completing migration_0010',
        failure_ok=True
    )
    set_repo_version(repo, 10)
dataset/ETHPy150Open coddingtonbear/jirafs/jirafs/migrations.py/migration_0010