Improves GitVersion speed#4016
Merged
david-poindexter merged 3 commits intodnnsoftware:developfrom Aug 26, 2020
Merged
Conversation
Ignores commits before 2020 for GitVersion calculations, thus speeding up builds.
mitchelsellers
approved these changes
Aug 26, 2020
Contributor
mitchelsellers
left a comment
There was a problem hiding this comment.
LGTM - We should make a note somewhere that this is a tasks that should be updated once a year? It appears that we don't have any real way around limiting by date though, so this is a great solution
david-poindexter
requested changes
Aug 26, 2020
Contributor
david-poindexter
left a comment
There was a problem hiding this comment.
This should be a huge help in build times - thanks @valadas 🎉
Changing date to `2020-01-01` instead of `2019-01-01`
Contributor
Author
|
Ok, I played a bit with different values and it looks like there is some unavoidable overhead no matter what value, but will it still improves the very very long times though. What's odd is running just |
david-poindexter
approved these changes
Aug 26, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sets the maximum GitVersion lookup date to january 1st 2020 thus speeding up GitVersion calculations a lot. This means GitVersion will only look at commits from this year instead of well all the project history to find tags and read commit messages, etc.