MCPcopy Create free account
hub / github.com/libgit2/pygit2 / wrap_signature

Function wrap_signature

pygit2/blame.py:39–49  ·  view source on GitHub ↗
(csig: 'GitSignatureC')

Source from the content-addressed store, hash-verified

37
38
39def wrap_signature(csig: 'GitSignatureC') -> None | Signature:
40 if not csig:
41 return None
42
43 return Signature(
44 ffi.string(csig.name).decode('utf-8'),
45 ffi.string(csig.email).decode('utf-8'),
46 csig.when.time,
47 csig.when.offset,
48 'utf-8',
49 )
50
51
52class BlameHunk:

Callers 2

final_committerMethod · 0.85
orig_committerMethod · 0.85

Calls 1

stringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…