Repository access.

This module contains the base class for git repositories (BaseRepo) and an implementation which uses a repository on local disk (Repo).

Class InvalidUserIdentity User identity is not of the format 'user <email>'
Function check_user_identity Verify that a user identity is formatted correctly.
Function parse_graftpoints Convert a list of graftpoints into a dict
Function serialize_graftpoints Convert a dictionary of grafts into string
Class BaseRepo Base class for a git repository.
Function read_gitfile Read a .git file.
Class Repo A git repository backed by local disk.
Class MemoryRepo Repo that stores refs, objects, and named files in memory.
def check_user_identity(identity):
Verify that a user identity is formatted correctly.
ParametersidentityUser identity bytestring
RaisesInvalidUserIdentityRaised when identity is invalid
def parse_graftpoints(graftpoints):

Convert a list of graftpoints into a dict

Each line is formatted as:
<commit sha1> <parent sha1> [<parent sha1>]*
Resulting dictionary is:
<commit sha1>: [<parent sha1>*]

https://git.wiki.kernel.org/index.php/GraftPoint

ParametersgraftpointsIterator of graftpoint lines
def serialize_graftpoints(graftpoints):

Convert a dictionary of grafts into string

The graft dictionary is:
<commit sha1>: [<parent sha1>*]
Each line is formatted as:
<commit sha1> <parent sha1> [<parent sha1>]*

https://git.wiki.kernel.org/index.php/GraftPoint

def read_gitfile(f):

Read a .git file.

The first line of the file should start with "gitdir: "

ParametersfFile-like object to read from
ReturnsA path
API Documentation for Dulwich, generated by pydoctor at 2018-11-17 19:05:54.