(data: bytes)
| 77 | |
| 78 | |
| 79 | def gen_blob_sha1(data: bytes) -> str: |
| 80 | # http://stackoverflow.com/questions/552659/assigning-git-sha1s-without-git |
| 81 | m = hashlib.sha1() |
| 82 | m.update(f'blob {len(data)}\0'.encode()) |
| 83 | m.update(data) |
| 84 | return m.hexdigest() |
| 85 | |
| 86 | |
| 87 | def force_rm_handle( |
nothing calls this directly
no test coverage detected
searching dependent graphs…