in asfyaml/dataobjects.py [0:0]
def __init__(self, ref, sha):
self.ref = ref
self.sha = sha
fmt = "--format=format:%s%%x00" % r"%x00".join([s for _, s in COMMIT_FIELDS])
args = ["show", "--stat=75", fmt, self.sha]
parts = gitcmd(*args).split("\x00")
self.stats = "\n".join(filter(None, parts.pop(-1).splitlines()))
for pos, (key, _) in enumerate(COMMIT_FIELDS):
setattr(self, key, parts[pos])
self.committed_unix = int(self.committed_unix)
parts = self.committer_email.split("@")
self.committer_uname = parts[0]
if len(parts) > 1:
self.committer_domain = parts[1]
else:
self.committer_domain = ""