range-diff: Incorrect limit when selecting four commits #8952
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.
Candidate for 3.5
Proposed changes
Git diff-range can be used to show the difference in 'slices' of branches.
This is advanced usage, my normal usage is just to select two heads.
But if you select baseA, A, baseB, B then range-diff shows the difference between the commits,
(see example after, just with one commit in each 'slice').
This is helpful in comparing a patchset in two separate branches (master and release for instance).
range-diff can be slow with many commits and is limited to 100 commit differences.
This calculation was incorrect and did not count the differences but the union for the "base" and the "head" why the command was normally refused.
With this, also a routine in GitModule could be removed.
Just avoid some CPU cycles
No need to invoke Git in these situations, even if the commands are cached.
Screenshots
Before
After
Test methodology
manual
✒️ I contribute this code under The Developer Certificate of Origin.