Skip to content

Add API for unsetting multivar entry #1719

Closed
@kzu

Description

@kzu

Reproduction steps

Given a multivar setting (i.e. "plugin"):

// throws LibGit2Sharp.LibGit2SharpException: 'entry is not unique due to being a multivar'
repo.Config.Unset("plugin");

Expected behavior

Provide an UnsetAll(key, level) pair of overloads that basically expose the existing UnsetMultivar behavior.

Actual behavior

Exception thrown: LibGit2Sharp.LibGit2SharpException: 'entry is not unique due to being a multivar'

Version of LibGit2Sharp (release number or SHA1)

0.26.1

Operating system(s) tested; .NET runtime tested

.NET Core 2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions