(rev="HEAD")
| 51 | |
| 52 | |
| 53 | def get_git_diff(rev="HEAD"): |
| 54 | import subprocess |
| 55 | |
| 56 | try: |
| 57 | return subprocess.check_output( |
| 58 | ["git", "diff", rev], |
| 59 | encoding="utf-8", |
| 60 | errors="replace", |
| 61 | ).rstrip() |
| 62 | except Exception: |
| 63 | return "unknown" |
| 64 | |
| 65 | |
| 66 | __all__ = [ |
no outgoing calls
no test coverage detected