Skip to content

Add support for adding and clearing multi-valued configuration - #1720

Merged
bording merged 3 commits into
libgit2:masterfrom
kzu:multivar
Oct 9, 2019
Merged

Add support for adding and clearing multi-valued configuration#1720
bording merged 3 commits into
libgit2:masterfrom
kzu:multivar

Conversation

@kzu

@kzu kzu commented Sep 27, 2019

Copy link
Copy Markdown
Contributor

Implement value adding by exposing the underlying set_multivar,
which supports only string values in the underlying libgit2, so no
other typed overloads are provided at this point.

The counterpart for deleting keys exposes the underlying delete_multivar.
No regex-based overload is exposed for consistency with the existing Set<T>
overloads which don't expose it either.

Also exposed the boolean return value from the Unset calls which
is already present in the Proxy API.

Fixes #1719.

@kzu

kzu commented Sep 27, 2019

Copy link
Copy Markdown
Contributor Author

All green! 👍

image

@kzu

kzu commented Sep 27, 2019

Copy link
Copy Markdown
Contributor Author

heya @bording this PR also gets travis back to green ;)

kzu added 2 commits September 27, 2019 22:12
Implement value adding by exposing the underlying `set_multivar`,
which supports only string values in the underlying libgit2, so no
other typed overloads are provided at this point.

The counterpart for deleting keys exposes the underlying `delete_multivar`.
No regex-based overload is exposed for consistency with the existing `Set<T>`
overloads which don't expose it either.

Also exposed the boolean return value from the `Unset` calls which
is already present in the Proxy API.

Fixes libgit2#1719.

Fix
This should fix travis failures in CI

@bording bording left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor tweak needed, otherwise LGTM

Comment thread LibGit2Sharp/Configuration.cs Outdated
Co-Authored-By: Brandon Ording <bording@gmail.com>
@bording
bording merged commit 0e8a3ca into libgit2:master Oct 9, 2019
@bording

bording commented Oct 9, 2019

Copy link
Copy Markdown
Member

This change is available in 0.27.0-preview-0024 on nuget.org.

@kzu
kzu deleted the multivar branch October 10, 2019 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants