• Nate Bosch's avatar
    Use merge-base in find_commit.dart (#138033) · fa3a37c7
    Nate Bosch authored
    Closes #97595
    
    The prior approach of manually diffing the entire log chain is less
    efficient, and only found the original branch point ignoring subsequent
    merges. The limitation forced PR workflows into rebasing and force
    pushing new history to get the branch point far enough for CI to pass.
    
    Use `git merge-base` to find the latest common commit with the main
    branch.
    Add an `allowFailure` argument to the `git` utility to use a more
    specific failure in the case of no shared history when this command will
    fail with a generic error.
    
    Use `^branch` with the `git log` commands to exclude shared history and
    more easily count the unique commits on each branch.
    
    Drop the `Commit` abstraction. Parse directly to timestamp or line counts.
    fa3a37c7
Name
Last commit
Last update
.github Loading commit data...
.vscode Loading commit data...
bin Loading commit data...
dev Loading commit data...
examples Loading commit data...
packages Loading commit data...
.ci.yaml Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CODEOWNERS Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
PATENT_GRANT Loading commit data...
README.md Loading commit data...
TESTOWNERS Loading commit data...
analysis_options.yaml Loading commit data...
dartdoc_options.yaml Loading commit data...
flutter_console.bat Loading commit data...