Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 88f741f0350859125ed2b8ca4d208808ea9f5c1c
      
https://github.com/WebKit/WebKit/commit/88f741f0350859125ed2b8ca4d208808ea9f5c1c
  Author: Sam Sneddon <[email protected]>
  Date:   2026-01-09 (Fri, 09 Jan 2026)

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

  Log Message:
  -----------
  Use for-each-ref when listing git branches
https://bugs.webkit.org/show_bug.cgi?id=240694

Reviewed by Darin Adler.

This avoids the complex and fragile parsing of the porcelain
`git-branch`, and when passed a `str` as the `remote` argument we no
longer have to iterate over every remote.

* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py:
(Git.branches_for):
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/local/git.py:
(Git.__init__): Add mocks for for-each-ref
(Git.for_each_ref): The actual mock implementation

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



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

Reply via email to