• 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
..
bin Loading commit data...
gen_defaults Loading commit data...
gen_keycodes Loading commit data...
localization Loading commit data...
test Loading commit data...
vitool Loading commit data...
.gitignore Loading commit data...
create_api_docs.dart Loading commit data...
dartdoc_checker.dart Loading commit data...
examples_smoke_test.dart Loading commit data...
find_engine_commit.dart Loading commit data...
mega_gallery.dart Loading commit data...
pubspec.yaml Loading commit data...
repackage_gradle_wrapper.sh Loading commit data...
update_icons.dart Loading commit data...