Enums

Details

class Ggit.BranchType(value)

Bases: GObject.GEnum

The type of a branch.

LOCAL = 1

specifies a local branch.

REMOTE = 2

specifies a remote branch.

class Ggit.CloneLocal(value)

Bases: GObject.GEnum

AUTO = 0
LOCAL = 1
NO_LOCAL = 2
class Ggit.ConfigLevel(value)

Bases: GObject.GEnum

Priority level of a config file. These priority levels correspond to the natural escalation logic (from higher to lower) when searching for config entries in git.git.

HIGHEST = -1

Represents the highest level of a config file.

PROGRAMDATA = 1

System-wide on Windows, for compatibility with portable git.

SYSTEM = 2

System-wide configuration file.

XDG = 3

XDG compatible configuration file (.config/git/config).

GLOBAL = 4

User-specific configuration file, also called Global configuration file.

LOCAL = 5

Repository specific configuration file.

APP = 6

Application specific configuration file; freely defined by applications.

class Ggit.DeltaType(value)

Bases: GObject.GEnum

Describes the type of change the delta is.

UNMODIFIED = 0

unmodified.

ADDED = 1

added.

CONFLICTED = 10
DELETED = 2

deleted.

MODIFIED = 3

modified.

RENAMED = 4

renamed.

COPIED = 5

copied.

IGNORED = 6

ignored.

UNTRACKED = 7

untracked.

TYPECHANGE = 8
UNREADABLE = 9
class Ggit.DiffBinaryType(value)

Bases: GObject.GEnum

When producing a binary diff, the binary data returned will be either the deflated full (“literal”) contents of the file, or the deflated binary delta between the two sides (whichever is smaller).

NONE = 0
LITERAL = 1
DELTA = 2
class Ggit.DiffFormatType(value)

Bases: GObject.GEnum

Possible output formats for diff data.

PATCH = 1

full git diff.

PATCH_HEADER = 2

just the file headers of patch.

RAW = 3

like git diff –raw.

NAME_ONLY = 4

like git diff –name-only.

NAME_STATUS = 5

like git diff –name-status.

class Ggit.DiffLineType(value)

Bases: GObject.GEnum

These values describe where a line came from and will be passed to the Ggit.DiffLineCallback when iterating over a diff.

The Ggit.DiffLineType.FILE_HDR, Ggit.DiffLineType.HUNK_HDR and Ggit.DiffLineType.BINARY values are only sent when the diff is being printed.

CONTEXT = 32

line is part of the context.

ADDITION = 43

line that was added.

DELETION = 45

line that was removed.

DEL_EOFNL = 60

LF was removed at end of file.

CONTEXT_EOFNL = 61

Both files have no LF at end.

ADD_EOFNL = 62

LF was added at end of file.

BINARY = 66

is binary.

FILE_HDR = 70

the file header.

HUNK_HDR = 72

the hunk header.

class Ggit.Direction(value)

Bases: GObject.GEnum

FETCH = 0
PUSH = 1
class Ggit.Error(value)

Bases: GObject.GEnum

Error codes for the %GGIT_ERROR error domain.

classmethod quark()
Return type:

int

Error domain for Ggit functions. Errors in this domain will be from the Ggit.Error enumeration. See GLib.Error for information on error domains.

GIT_ERROR = -1

A generic error for when an operation fails.

NOTFOUND = -3

Input does not exist in the scope searched.

PASSTHROUGH = -30

Skip and passthrough the given ODB backend.

ITEROVER = -31

The iteration has finished.

EXISTS = -4

A reference with this name already exists.

AMBIGUOUS = -5

The given error is ambiguous.

BUFS = -6

The buffer is too short.

class Ggit.FileMode(value)

Bases: GObject.GEnum

UNREADABLE = 0
TREE = 16384
BLOB = 33188
BLOB_EXECUTABLE = 33261
COMMIT = 57344
class Ggit.MergeFileFavor(value)

Bases: GObject.GEnum

NORMAL = 0
OURS = 1
THEIRS = 2
UNION = 3
class Ggit.PackbuilderStage(value)

Bases: GObject.GEnum

Valid stages for pack building.

ADDING_OBJECTS = 0

adding objects.

DELTAFICATION = 1

deltafication.

class Ggit.ProxyType(value)

Bases: GObject.GEnum

The type of proxy to use.

NONE = 0

Do not attempt to connect through a proxy.

AUTO = 1

Try to auto-detect the proxy from the git configuration.

SPECIFIED = 2

Connect via the URL given in the options.

class Ggit.RebaseOperationType(value)

Bases: GObject.GEnum

Type of rebase operation in-progress.

PICK = 0

The given commit is to be cherry-picked. The client should commit the changes and continue if there are no conflicts.

REWORD = 1

The given commit is to be cherry-picked, but the client should prompt the user to provide an updated commit message.

EDIT = 2

The given commit is to be cherry-picked, but the client should stop to allow the user to edit the changes before committing them.

SQUASH = 3

The given commit is to be squashed into the previous commit. The commit message will be merged with the previous message.

FIXUP = 4

The given commit is to be squashed into the previous commit. The commit message from this commit will be discarded.

EXEC = 5

No commit will be cherry-picked. The client should run the given command and (if successful) continue.

class Ggit.RefType(value)

Bases: GObject.GEnum

Describes the type a reference is.

INVALID = 0

An invalid reference.

OID = 1

A reference which points at an object id.

SYMBOLIC = 2

A reference which points at another reference.

LISTALL = 3

All reference types.

class Ggit.RemoteCompletionType(value)

Bases: GObject.GEnum

Argument to the completion callback which tells it which operation finished.

DOWNLOAD = 0

download.

INDEXING = 1

indexing.

ERROR = 2

error.

class Ggit.RemoteDownloadTagsType(value)

Bases: GObject.GEnum

Automatic tag following option

Lets us select the –tags option to use.

UNSPECIFIED = 0

Use the setting from the configuration.

AUTO = 1

Ask the server for tags pointing to objects we’re already downloading.

NONE = 2

Don’t ask for any tags beyond the refspecs.

ALL = 3

Ask for the all the tags.

class Ggit.ResetType(value)

Bases: GObject.GEnum

Describes the type of reset to perform.

SOFT = 1

The head will be moved to the commit.

MIXED = 2

the head will be moved to the commit and the index will be replaced with the content of the commit tree.

HARD = 3

MIXED plus changes in working tree discarded.

class Ggit.StatusShow(value)

Bases: GObject.GEnum

Show options for Ggit.Repository.file_status_foreach. Determines which files are included in the status.

INDEX_AND_WORKDIR = 0

receive one callback for each file, even if the file is in both the index and the workdir (combining Ggit.StatusFlags).

INDEX_ONLY = 1

only receive callbacks for files in the index.

WORKDIR_ONLY = 2

only receive callbacks for files in the workdir.

class Ggit.SubmoduleIgnore(value)

Bases: GObject.GEnum

Describes which submodules should be ignored.

UNSPECIFIED = -1

reset to on-disk value.

NONE = 1

don’t ignore any change.

UNTRACKED = 2

ignore untracked files.

DIRTY = 3

ignore changes in the working directory.

ALL = 4

never check if the submodule is dirty.

class Ggit.SubmoduleRecurse(value)

Bases: GObject.GEnum

Options for submodule recurse. Represents the value of submodule.$name.fetchRecurseSubmodules

NO = 0

do no recurse into submodules.

YES = 1

recurse into submodules.

ONDEMAND = 2

recurse into submodules only when commit not already in local clone.

class Ggit.SubmoduleUpdate(value)

Bases: GObject.GEnum

Describes how a submodule should be updated.

DEFAULT = 0

not used except as static initializer when we don’t want any particular update rule to be specified.

CHECKOUT = 1

checkout the submodule.

REBASE = 2

rebase the current branch onto the commit recorded in the superproject.

MERGE = 3

merge the commit recorded in the superproject into the current branch.

NONE = 4

do not update this submodule.

class Ggit.TreeWalkMode(value)

Bases: GObject.GEnum

Describes in which order a tree walk should be performed.

PRE = 0

walk tree in pre-order

POST = 1

walk tree in post-order