Skip to content

Remove FollowFilter for add an override of QueryBy #1310

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
Jun 28, 2016
Merged

Remove FollowFilter for add an override of QueryBy #1310

merged 1 commit into from
Jun 28, 2016

Conversation

Aimeast
Copy link
Contributor

@Aimeast Aimeast commented Apr 26, 2016

FollowFilter is a duplicate with CommitFilter. We only need ensure the SortStrategies has checked before create FileHistory.

Visual Studio tests passed except NoPublicTypesUnderLibGit2SharpCoreNamespace

to close #1276

@carlosmn
Copy link
Member

We can't remove a type without deprecating it for a release.

@Aimeast
Copy link
Contributor Author

Aimeast commented Apr 27, 2016

updated. mark FollowFilter as obsolete

@Aimeast
Copy link
Contributor Author

Aimeast commented Jun 25, 2016

Can I kindly ask what is your plan for merge this. My project need to use this feature. Could you please tell me? Thank you!

@ethomson
Copy link
Member

Hi @Aimeast, thanks for the ping.

I think that in order to deprecate this politely, we want to warn people about FollowFilter's deprecation (which you've done) but also allow it to work until its removed in the next release.

We could do that by either having a second overloaded method that takes FollowFilter and converts the param to a CommitFilters. Alternately, we could simply make FollowFilter extend CommitFilter. That way people who were creating a FollowFilter would be able to pass it to the function that takes a CommitFilter.

Does that also sound like it will work? If so, could you make that change and then I will merge it. Thanks!

@Aimeast
Copy link
Contributor Author

Aimeast commented Jun 25, 2016

@ethomson thanks for your quickly response.

I have updated PR. Added a overload to CommitLog and IQueryableCommitLog

@ethomson
Copy link
Member

Neat, thanks for fixing this! 😁

@ethomson ethomson merged commit 70ad4a5 into libgit2:master Jun 28, 2016
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.

reinforcement for Commits.QueryBy
3 participants