Skip to content

Remove equality comparison from Remote #1286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 30, 2016
Merged

Conversation

carlosmn
Copy link
Member

There are no semantics for determining whether a remote is like another
one. The equality decision in libgit2sharp only looks at the name and
urls, ignoring any other number of fields which affect how a remote
behaves.

For these reaons, rip it out. Equality (in as much as it's valuable)
should be perform on whatever aspect the code is interested.


If there's a way to deprecate the implementation of an interface I'm all ears, but it looks like we might want to simply get rid of it.

@whoisj
Copy link

whoisj commented Mar 28, 2016

👍

There are no semantics for determining whether a remote is like another
one. The equality decision in libgit2sharp only looks at the name and
urls, ignoring any other number of fields which affect how a remote
behaves.

For these reaons, rip it out. Equality (in as much as it's valuable)
should be perform on whatever aspect the code is interested.
@carlosmn carlosmn force-pushed the cmn/remote-no-equal branch from 317aac8 to 92b55d1 Compare March 29, 2016 17:34
@ethomson ethomson merged commit 68d9be9 into master Mar 30, 2016
@carlosmn carlosmn deleted the cmn/remote-no-equal branch March 31, 2016 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants