Gavin Mak d7d21337d1 Support infra/specs/PRESUBMIT.py on cog
cog workspaces don't have a git directory and can't run "git diff".
Replace it with python's difflib instead.

Bug: b/333744051
Change-Id: I5bd8ccd873a0db55f0bbadf165180b3f2aa42903
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/357900
Reviewed-by: Jeremy Leconte <jleconte@google.com>
Commit-Queue: Jeremy Leconte <jleconte@webrtc.org>
Reviewed-by: Jeremy Leconte <jleconte@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#42674}
2024-07-26 08:48:02 +00:00
..
2023-12-13 16:10:11 +00:00