Flags

Details

class Ggit.AttributeCheckFlags(value)

Bases: GObject.GFlags

Attribute check flags indicate the order in which to check for gitattributes. git core uses Ggit.AttributeCheckFlags.FILE_THEN_INDEX for all operations, except on checkout, where it uses Ggit.AttributeCheckFlags.INDEX_THEN_FILE.

FILE_THEN_INDEX = 0

check working directory, then index.

INDEX_THEN_FILE = 1

check index, then working directory.

INDEX_ONLY = 2

check only index.

NO_SYSTEM = 4

ignore system wide attributes.

class Ggit.BlameFlags(value)

Bases: GObject.GFlags

NORMAL = 0

Normal blame, the default.

TRACK_COPIES_SAME_FILE = 1

Track lines that have moved within a file (like git blame -M)

class Ggit.CheckoutNotifyFlags(value)

Bases: GObject.GFlags

NONE = 0
CONFLICT = 1
IGNORED = 16
DIRTY = 2
UPDATED = 4
ALL = 65535
UNTRACKED = 8
class Ggit.CheckoutStrategy(value)

Bases: GObject.GFlags

NONE = 0
SAFE = 1
SKIP_UNMERGED = 1024
CONFLICT_STYLE_MERGE = 1048576
UPDATE_ONLY = 128
UPDATE_SUBMODULES_IF_CHANGED = 131072
ALLOW_CONFLICTS = 16
FORCE = 2
USE_OURS = 2048
CONFLICT_STYLE_DIFF3 = 2097152
DONT_UPDATE_INDEX = 256
SKIP_LOCKED_DIRECTORIES = 262144
REMOVE_UNTRACKED = 32
RECREATE_MISSING = 4
USE_THEIRS = 4096
DONT_REMOVE_EXISTING = 4194304
NO_REFRESH = 512
DONT_OVERWRITE_IGNORED = 524288
REMOVE_IGNORED = 64
UPDATE_SUBMODULES = 65536
DISABLE_PATHSPEC_MATCH = 8192
DONT_WRITE_INDEX = 8388608
class Ggit.CreateFlags(value)

Bases: GObject.GFlags

Describes how something should be created.

NONE = 0

attempt to create.

FORCE = 1

force creation.

class Ggit.Credtype(value)

Bases: GObject.GFlags

USERPASS_PLAINTEXT = 1
SSH_INTERACTIVE = 16
SSH_KEY = 2
SSH_CUSTOM = 4
DEFAULT = 8
class Ggit.DiffFindFlags(value)

Bases: GObject.GFlags

FIND_BY_CONFIG = 0
FIND_IGNORE_LEADING_WHITESPACE = 0
FIND_RENAMES = 1
FIND_REWRITES = 16
FIND_EXACT_MATCH_ONLY = 16384
FIND_RENAMES_FROM_REWRITES = 2
FIND_ALL = 255
BREAK_REWRITES = 32
BREAK_REWRITES_FOR_RENAMES_ONLY = 32768
FIND_COPIES = 4
FIND_IGNORE_WHITESPACE = 4096
FIND_AND_BREAK_REWRITES = 48
FIND_FOR_UNTRACKED = 64
FIND_REMOVE_UNMODIFIED = 65536
FIND_COPIES_FROM_UNMODIFIED = 8
FIND_DONT_IGNORE_WHITESPACE = 8192
class Ggit.DiffFlag(value)

Bases: GObject.GFlags

Describes the diff file and/or delta flags

BINARY = 1

if the file is binary.

NOT_BINARY = 2

if the file is not binary.

VALID_ID = 4

if the ID is valid.

class Ggit.DiffFormatEmailFlags(value)

Bases: GObject.GFlags

NONE = 0
EXCLUDE_SUBJECT_PATCH_MARKER = 1
class Ggit.DiffOption(value)

Bases: GObject.GFlags

How the diff should be generated.

NORMAL = 0

normal.

REVERSE = 1

reverse the sides of the diff.

IGNORE_CASE = 1024

use case insensitive filename comparison.

FORCE_TEXT = 1048576

force text.

SHOW_BINARY = 1073741824

include deflate/delta information for binary files.

INCLUDE_TYPECHANGE_TREES = 128

try to label tree transitions as type changes.

RECURSE_UNTRACKED_DIRS = 16

recurse to untracked directories.

ENABLE_FAST_UNTRACKED_DIRS = 16384

immediately label untracked directories as untracked, without checking inside.

IGNORE_WHITESPACE_EOL = 16777216

ignore whitespace at end-of-line.

INCLUDE_IGNORED = 2

include ignored files.

FORCE_BINARY = 2097152

treat all files as binary, disabling text diffs.

IGNORE_FILE_MODE = 256

ignore file mode changes.

PATIENCE = 268435456

generate using the “patience diff” algorithm.

INCLUDE_UNMODIFIED = 32

include unmodified files.

SHOW_UNTRACKED_CONTENT = 33554432

include content of untracked files. this implies Ggit.DiffOption.INCLUDE_UNTRACKED but not Ggit.DiffOption.RECURSE_UNTRACKED_DIRS.

RECURSE_IGNORED_DIRS = 4

also add all files under ignored dirs.

DISABLE_PATHSPEC_MATCH = 4096

use exact path matching.

IGNORE_WHITESPACE = 4194304

ignore whitespace.

IGNORE_SUBMODULES = 512

ignore submodules.

MINIMAL = 536870912

take extra time to find minimal diff.

INCLUDE_TYPECHANGE = 64

enable generation of typechange detal records.

SHOW_UNMODIFIED = 67108864

show unmodified files.

INCLUDE_UNTRACKED = 8

include untracked files.

SKIP_BINARY_CHECK = 8192

disable updating the binary flag in delta records.

IGNORE_WHITESPACE_CHANGE = 8388608

ignore whitespace change.

class Ggit.FeatureFlags(value)

Bases: GObject.GFlags

THREADS = 1
HTTPS = 2
SSH = 4
class Ggit.MergeFileFlags(value)

Bases: GObject.GFlags

Ggit.MergeFileFlags.DEFAULT: Defaults. Ggit.MergeFileFlags.STYLE_MERGE: Create standard conflicted merge files. Ggit.MergeFileFlags.STYLE_DIFF3: Create diff3-style files. Ggit.MergeFileFlags.SIMPLIFY_ALNUM: Condense non-alphanumeric regions for simplified diff file. Ggit.MergeFileFlags.IGNORE_WHITESPACE: Ignore all whitespace. Ggit.MergeFileFlags.IGNORE_WHITESPACE_CHANGE: Ignore changes in amount of whitespace. Ggit.MergeFileFlags.IGNORE_WHITESPACE_EOL: Ignore whitespace at end of line. Ggit.MergeFileFlags.DIFF_PATIENCE: Use the “patience diff” algorithm. Ggit.MergeFileFlags.DIFF_MINIMAL: Take extra time to find minimal diff.

DEFAULT = 0
STYLE_MERGE = 1
DIFF_MINIMAL = 128
IGNORE_WHITESPACE_CHANGE = 16
STYLE_DIFF3 = 2
IGNORE_WHITESPACE_EOL = 32
SIMPLIFY_ALNUM = 4
DIFF_PATIENCE = 64
IGNORE_WHITESPACE = 8
class Ggit.MergeFlags(value)

Bases: GObject.GFlags

FIND_RENAMES = 1

detect renames that occur between the common ancestor and the “ours” side or the common ancestor and the “theirs” side. This will enable the ability to merge between a modified and renamed file.

FAIL_ON_CONFLICT = 2

If a conflict occurs, exit immediately instead of attempting to continue resolving conflicts. The merge operation will fail with GGIT_EMERGECONFLICT and no index will be returned.

SKIP_REUC = 4

do not write the REUC extension on the generated index.

NO_RECURSIVE = 8

If the commits being merged have multiple merge bases, do not build a recursive merge base (by merging the multiple merge bases), instead simply use the first base. This flag provides a similar merge base to git-merge-resolve.

class Ggit.SortMode(value)

Bases: GObject.GFlags

The type of sorting mode for the revision walker.

NONE = 0

Sorts the repository contents in no particular ordering; this sorting is arbitrary, implementation-specific and subject to change at any time.

TOPOLOGICAL = 1

Sorts the repository contents in topological order (parents before children); this sorting mode can be combined with time sorting.

TIME = 2

Sort the repository contents by commit time; this sorting mode can be combined with topological sorting.

REVERSE = 4

Iterate through the repository contents in reverse order; this sorting mode can be combined with any of the above.

class Ggit.StashFlags(value)

Bases: GObject.GFlags

Describes how a stash should be applied.

DEFAULT = 0

default stash.

KEEP_INDEX = 1

All changes already added to the index are left intact in the working directory.

INCLUDE_UNTRACKED = 2

All untracked files are also stashed and then cleaned up from the working directory.

INCLUDE_IGNORED = 4

All ignored files are also stashed and then cleaned up from the working directory.

class Ggit.StatusFlags(value)

Bases: GObject.GFlags

Describes a file’s status.

CURRENT = 0

file is current.

INDEX_NEW = 1

file in index is new.

WORKING_TREE_TYPECHANGE = 1024
WORKING_TREE_NEW = 128

file in working tree is new.

INDEX_TYPECHANGE = 16
IGNORED = 16384

file is ignored.

INDEX_MODIFIED = 2

file in index is modified.

WORKING_TREE_RENAMED = 2048
WORKING_TREE_MODIFIED = 256

file in working tree is modified.

CONFLICTED = 32768
INDEX_DELETED = 4

file in index is deleted.

WORKING_TREE_UNREADABLE = 4096
WORKING_TREE_DELETED = 512

file in working tree is deleted.

INDEX_RENAMED = 8
class Ggit.StatusOption(value)

Bases: GObject.GFlags

Ggit.StatusOption.INCLUDE_UNTRACKED: include untracked files (default). Ggit.StatusOption.INCLUDE_IGNORED: include ignored files (default). Ggit.StatusOption.INCLUDE_UNMODIFIED: include unmodified files. Ggit.StatusOption.EXCLUDE_SUBMODULES: exclude submodules. Ggit.StatusOption.RECURSE_UNTRACKED_DIRS: search untracked directories recursively (default). Ggit.StatusOption.DISABLE_PATHSPEC_MATCH: do not match path specifications. Ggit.StatusOption.RECURSE_IGNORED_DIRS: search ignored directories recursively. Ggit.StatusOption.RENAMES_HEAD_TO_INDEX: indicates that rename detection should be processed between the head and the index and enables the GIT_STATUS_INDEX_RENAMED as a possible status flag. Ggit.StatusOption.RENAMES_INDEX_TO_WORKDIR: indicates tha rename detection should be run between the index and the working directory and enabled GIT_STATUS_WT_RENAMED as a possible status flag. Ggit.StatusOption.SORT_CASE_SENSITIVELY: sort case sensitive. Ggit.StatusOption.SORT_CASE_INSENSITIVELY: sort case insensitive. Ggit.StatusOption.DEFAULT: default flags. Status options specified when using Ggit.Repository.file_status_foreach.

INCLUDE_UNTRACKED = 1
SORT_CASE_INSENSITIVELY = 1024
RENAMES_HEAD_TO_INDEX = 128
RECURSE_UNTRACKED_DIRS = 16
DEFAULT = 19
INCLUDE_IGNORED = 2
RENAMES_INDEX_TO_WORKDIR = 256
DISABLE_PATHSPEC_MATCH = 32
INCLUDE_UNMODIFIED = 4
SORT_CASE_SENSITIVELY = 512
RECURSE_IGNORED_DIRS = 64
EXCLUDE_SUBMODULES = 8
class Ggit.SubmoduleStatus(value)

Bases: GObject.GFlags

FIXME

IN_HEAD = 1
WD_MODIFIED = 1024
WD_UNINITIALIZED = 128
INDEX_ADDED = 16
IN_INDEX = 2
WD_INDEX_MODIFIED = 2048
WD_ADDED = 256
INDEX_DELETED = 32
IN_CONFIG = 4
WD_WD_MODIFIED = 4096
WD_DELETED = 512
INDEX_MODIFIED = 64
IN_WD = 8
WD_UNTRACKED = 8192