GgitStatusOptions

GgitStatusOptions

Synopsis

enum                GgitStatusOption;
enum                GgitStatusShow;
GgitStatusOptions * ggit_status_options_copy            (GgitStatusOptions *status_options);
void                ggit_status_options_free            (GgitStatusOptions *status_options);
GgitStatusOptions * ggit_status_options_new             (GgitStatusOption options,
                                                         GgitStatusShow show,
                                                         const gchar **pathspec);

Object Hierarchy

  GFlags
   +----GgitStatusOption
  GEnum
   +----GgitStatusShow

Description

Details

enum GgitStatusOption

typedef enum {
	GGIT_STATUS_OPTION_INCLUDE_UNTRACKED        = (1 << 0),
	GGIT_STATUS_OPTION_INCLUDE_IGNORED          = (1 << 1),
	GGIT_STATUS_OPTION_INCLUDE_UNMODIFIED       = (1 << 2),
	GGIT_STATUS_OPTION_EXCLUDE_SUBMODULES       = (1 << 3),
	GGIT_STATUS_OPTION_RECURSE_UNTRACKED_DIRS   = (1 << 4),
	GGIT_STATUS_OPTION_DISABLE_PATHSPEC_MATCH   = (1 << 5),
	GGIT_STATUS_OPTION_RECURSE_IGNORED_DIRS     = (1 << 6),
	GGIT_STATUS_OPTION_RENAMES_HEAD_TO_INDEX    = (1 << 7),
	GGIT_STATUS_OPTION_RENAMES_INDEX_TO_WORKDIR = (1 << 8),
	GGIT_STATUS_OPTION_SORT_CASE_SENSITIVELY    = (1 << 9),
	GGIT_STATUS_OPTION_SORT_CASE_INSENSITIVELY  = (1 << 10),
	GGIT_STATUS_OPTION_DEFAULT                  = GGIT_STATUS_OPTION_INCLUDE_IGNORED |
	                                              GGIT_STATUS_OPTION_INCLUDE_UNTRACKED |
	                                              GGIT_STATUS_OPTION_RECURSE_UNTRACKED_DIRS
} GgitStatusOption;

Status options specified when using ggit_repository_file_status_foreach.

GGIT_STATUS_OPTION_INCLUDE_UNTRACKED

GGIT_STATUS_OPTION_INCLUDE_IGNORED

GGIT_STATUS_OPTION_INCLUDE_UNMODIFIED

GGIT_STATUS_OPTION_EXCLUDE_SUBMODULES

GGIT_STATUS_OPTION_RECURSE_UNTRACKED_DIRS

GGIT_STATUS_OPTION_DISABLE_PATHSPEC_MATCH

GGIT_STATUS_OPTION_RECURSE_IGNORED_DIRS

GGIT_STATUS_OPTION_RENAMES_HEAD_TO_INDEX

GGIT_STATUS_OPTION_RENAMES_INDEX_TO_WORKDIR

GGIT_STATUS_OPTION_SORT_CASE_SENSITIVELY

GGIT_STATUS_OPTION_SORT_CASE_INSENSITIVELY

GGIT_STATUS_OPTION_DEFAULT


enum GgitStatusShow

typedef enum {
	GGIT_STATUS_SHOW_INDEX_AND_WORKDIR = 0,
	GGIT_STATUS_SHOW_INDEX_ONLY = 1,
	GGIT_STATUS_SHOW_WORKDIR_ONLY = 2,
	GGIT_STATUS_SHOW_INDEX_THEN_WORKDIR = 3,
} GgitStatusShow;

Show options for ggit_repository_file_status_foreach. Determines which files are included in the status.

GGIT_STATUS_SHOW_INDEX_AND_WORKDIR

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

GGIT_STATUS_SHOW_INDEX_ONLY

only receive callbacks for files in the index.

GGIT_STATUS_SHOW_WORKDIR_ONLY

only receive callbacks for files in the workdir.

GGIT_STATUS_SHOW_INDEX_THEN_WORKDIR

receive callbacks first for files in the index, and then in the workdir. This is equivalent to first specifying GGIT_STATUS_SHOW_INDEX_ONLY and then GGIT_STATUS_SHOW_WORKDIR_ONLY.

ggit_status_options_copy ()

GgitStatusOptions * ggit_status_options_copy            (GgitStatusOptions *status_options);

Copies status_options into a newly allocated GgitStatusOptions.

status_options :

a GgitStatusOptions.

Returns :

a newly allocated GgitStatusOptions. [transfer full]

ggit_status_options_free ()

void                ggit_status_options_free            (GgitStatusOptions *status_options);

Frees status_options.

status_options :

a GgitStatusOptions.

ggit_status_options_new ()

GgitStatusOptions * ggit_status_options_new             (GgitStatusOption options,
                                                         GgitStatusShow show,
                                                         const gchar **pathspec);

Creates a new GgitStatusOptions for use in ggit_repository_stash_foreach.

options :

status options.

show :

status show options.

pathspec :

which paths to show, defaults to showing all paths. [allow-none]

Returns :

a newly allocated GgitStatusOptions.