Ggit.Mailmap¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Ggit.Mailmap(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Represents a mailmap.
- classmethod new()¶
- Raises:
- Returns:
a newly allocated
Ggit.Mailmap
orNone
.- Return type:
Ggit.Mailmap
orNone
Creates a new
Ggit.Mailmap
.
- classmethod new_from_repository(repository)¶
- Parameters:
repository (
Ggit.Repository
) – aGgit.Repository
.- Raises:
- Returns:
a newly allocated
Ggit.Mailmap
orNone
.- Return type:
Ggit.Mailmap
orNone
Creates a new
Ggit.Mailmap
and loads mailmap files according to the configuration of repository.
- add_entry(real_name, real_email, replace_name, replace_email)¶
- Parameters:
- Raises:
Adds a new entry to self, replacing replace_name and replace_email with real_name and real_email respectively. If replace_name is
None
, it is ignored during matching. If either real_name or real_email isNone
, the respective field is not replaced.
- resolve(replace_name, replace_email)¶
- Parameters:
- Raises:
- Returns:
- real_name:
the real name of the person.
- real_email:
the real email of the person.
- Return type:
Resolves replace_name and replace_email to real_name and real_email. If self is
None
, no substitution is performed.
- resolve_signature(signature)¶
- Parameters:
signature (
Ggit.Signature
) – the commit signature as recorded.- Raises:
- Returns:
The corrected signature or
None
.- Return type:
Resolves signature to use the real name and email according to self. If self is
None
, no substitution is performed, but a new signature is still allocated and returned.