Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 912bf757dabd4abf64bdacea33775bee027032ed
      
https://github.com/WebKit/WebKit/commit/912bf757dabd4abf64bdacea33775bee027032ed
  Author: Jonathan Bedard <[email protected]>
  Date:   2023-12-07 (Thu, 07 Dec 2023)

  Changed paths:
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/remote/git_hub.py
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/git_hub.py
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/git_unittest.py

  Log Message:
  -----------
  [webkitscmpy] Collect diff from GitHub remote repository
https://bugs.webkit.org/show_bug.cgi?id=265590
rdar://118993239

Reviewed by Dewei Zhu.

* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/remote/git_hub.py:
(GitHub.commit): 'HEAD' in GitHub means "latest commit on the default branch".
(GitHub._diff_response): Return a response with a mock text diff.
(GitHub.request): Respect the 'application/vnd.github.diff' header.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/git_hub.py:
(GitHub):
(GitHub.diff): Given a commit or commit range, return a line-by-line diff of
the provided range. If the caller requests it, include the commit messages for
the specified commits in the same patch format used by 'git format-patch'.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/git_unittest.py:

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to