fix: improve gfd script to make it works for more cases.
#5561
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.
Issue being fixed or feature implemented
Seems as old command
git merge-base --fork-pointdoesn't work for some cases of tree structureParticularly it didn't worked for PR #5546:
Basically, one of the step
gfbscript --git merge-base --fork-point develop 82d8a61d227fb66e2c6d4402ebb88e5740271eb9returned me wrong commit. After pulling origin/develop it returns just an empty string.But
git show-branch --merge-base develop 82d8a61d227fb66e2c6d4402ebb88e5740271eb9worked and returned correct commit:"3e1c6dd731 fix: reorder initializations (#5545)" which is the last common commit with develop branch
What was done?
Updated recommended function
function gfd()in docHow Has This Been Tested?
Tested on PR #5546 that failed before and returned wrong diff for me
Breaking Changes
N/A
Checklist: