git_checkout_options

Checkout options structure

Initialize with GIT_CHECKOUT_OPTIONS_INIT. Alternatively, you can use git_checkout_options_init.

Members

Variables

ancestor_label
const(char)* ancestor_label;

the name of the common ancestor side of conflicts

baseline
libgit2_d.types.git_tree* baseline;

The expected content of the working directory; defaults to HEAD.

baseline_index
libgit2_d.types.git_index* baseline_index;

Like baseline above, though expressed as an index. This option overrides baseline.

checkout_strategy
uint checkout_strategy;

default will be a safe checkout

dir_mode
uint dir_mode;

default is 0755

disable_filters
int disable_filters;

don't apply filters like CRLF conversion

file_mode
uint file_mode;

default is 0644 or 0755 as dictated by blob

file_open_flags
int file_open_flags;

default is O_CREAT | O_TRUNC | O_WRONLY

notify_cb
.git_checkout_notify_cb notify_cb;

Optional callback to get notifications on specific file states. @see git_checkout_notify_t

notify_flags
uint notify_flags;

see git_checkout_notify_t above

notify_payload
void* notify_payload;

Payload passed to notify_cb

our_label
const(char)* our_label;

the name of the "our" side of conflicts

paths
libgit2_d.strarray.git_strarray paths;

A list of wildmatch patterns or paths.

perfdata_cb
.git_checkout_perfdata_cb perfdata_cb;

Optional callback to notify the consumer of performance data.

perfdata_payload
void* perfdata_payload;

Payload passed to perfdata_cb

progress_cb
.git_checkout_progress_cb progress_cb;

Optional callback to notify the consumer of checkout progress.

progress_payload
void* progress_payload;

Payload passed to progress_cb

target_directory
const(char)* target_directory;

alternative checkout path to workdir

their_label
const(char)* their_label;

the name of the "their" side of conflicts

version_
uint version_;

The version

Meta