Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: aca854d2444b163e7661e10a6f724c46b71a1cae
      
https://github.com/WebKit/WebKit/commit/aca854d2444b163e7661e10a6f724c46b71a1cae
  Author: Sam Sneddon <[email protected]>
  Date:   2025-12-03 (Wed, 03 Dec 2025)

  Changed paths:
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py

  Log Message:
  -----------
  [webkitscmpy] Git._is_on_default_branch doesn't need to get all branches
https://bugs.webkit.org/show_bug.cgi?id=303442

Reviewed by Jonathan Bedard.

We don't need to enumerate all branches and then check whether the
default branch name exists in each source remote: we can instead just
rely on merge-base to fail when the ref doesn't exist.

With a very large number of branches (mostly from numerous remotes),
this is a 3.9x speedup for
`git-webkit pickable origin/main~10..origin/main`.

* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py:
(Git._is_on_default_branch):

Canonical link: https://commits.webkit.org/303847@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to