ref: use fs.checksum instead of get_mtime_and_size (#6495)

This commit is contained in:
Ruslan Kuprieiev
2021-08-27 12:37:08 +09:00
committed by GitHub
parent ab08db5065
commit 95ba68d181
12 changed files with 97 additions and 73 deletions
+8
View File
@@ -92,6 +92,14 @@ class GitPythonObject(GitObject):
for obj in self.obj:
yield GitPythonObject(obj)
@property
def size(self) -> int:
return self.obj.size
@property
def sha(self) -> str:
return self.obj.hexsha
class GitPythonBackend(BaseGitBackend): # pylint:disable=abstract-method
"""git-python Git backend."""