Skip to content
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

Improve support for using reckon on old commits #81

Merged
merged 14 commits into from
May 30, 2018
Merged

Improve support for using reckon on old commits #81

merged 14 commits into from
May 30, 2018

Conversation

ajoberstar
Copy link
Owner

Primarily driven by #78. Along the way, it involved some heavy refactoring to simplify some internals, partially related to that issue and partially just lingering issues.

ajoberstar and others added 14 commits May 28, 2018 17:26
Continues using JSemver internally, but the API now leverages a custom
Version class. Main benefit is that it speaks the domain of Reckon, e.g.
stages.

More refactoring should probably be done to take advantage of this.
Prepare for refactoring to remove the strategy classes and build them
into the Reckoner. This puts all of the strategy tests at the Reckoner
level, so it ensures that they'll apply when the logic from the
strategies themselves is moved in there.
Consolidated into one class to handle all of the inference.
This includes a partial fix for #78.
Apply grgit by default, instead of requiring someone to apply it
themselves. This has been a confusion point for a few users. Also, it's
unlikely that I'll ever support more VCSs, so this just simplifies
things for everyone.

Additionally this meant starting to hide some methods from public
visibility. I think there's more to do on that front.
On top of already allowing a rebuild of a tagged version that's already
claimed, we should allow rebuilding insignificant versions.

As noted in the issue, this allows use of git bisect on reckoned repos.

This fixes #78.
SNAPSHOT should be treated like any other insignificant version.
Want a test to verify this until we remove the deprecated methods.
@ajoberstar ajoberstar merged commit 0cc8d77 into master May 30, 2018
@ajoberstar ajoberstar deleted the rebuild branch May 30, 2018 03:07
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.

1 participant