Ggit.CheckoutOptions¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Ancestor label |
||
r/w |
Baseline |
||
r/w |
Dir mode |
||
r/w |
Disable filters |
||
r/w |
File mode |
||
r/w |
File open flags |
||
r/w |
Notify flags |
||
r/w |
Our label |
||
r/w |
Strategy |
||
r/w |
Target directory |
||
r/w |
Their label |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Ggit.CheckoutOptions(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Represents the options used when doign a checkout.
- classmethod new()¶
- Returns:
a
Ggit.CheckoutOptions
orNone
.- Return type:
Create a new checkout options object.
- get_ancestor_label()¶
-
Get the checkout ancestor label.
- get_baseline()¶
-
Get the baseline, i.e. the expected content of workdir. Defaults to HEAD.
- get_dir_mode()¶
- Returns:
the default directory mode.
- Return type:
Get the default checkout directory mode.
- get_disable_filters()¶
-
Get whether filters are disabled.
- get_file_mode()¶
- Returns:
the default checkout file mode.
- Return type:
Get the default checkout file mode.
- get_file_open_flags()¶
- Returns:
the checkout file open flags.
- Return type:
Get the checkout file open flags. These flags are platform specific, e.g. on Unix these would include O_CREAT, O_TRUNC, etc.
- get_notify_flags()¶
- Returns:
- Return type:
Get the checkout notify flags.
- get_our_label()¶
-
Get the checkout our label.
- get_paths()¶
-
Get the list of file paths to checkout.
- get_strategy()¶
- Returns:
- Return type:
Get the checkout strategy.
- get_target_directory()¶
-
Get the checkout target directory.
- get_their_label()¶
-
Get the checkout their label.
- set_ancestor_label(label)¶
-
Set the checkout ancestor label.
- set_baseline(tree)¶
-
Set the baseline, i.e. the expected content of workdir. If tree is set to
None
, the default (HEAD) will be used as the baseline.
- set_dir_mode(dir_mode)¶
- Parameters:
dir_mode (
int
) – the dir mode.
Set the default checkout directory mode.
- set_disable_filters(disable)¶
- Parameters:
disable (
bool
) – disable filters.
Set whether to disable filters.
- set_file_mode(file_mode)¶
- Parameters:
file_mode (
int
) – the file mode.
Set the default checkout file mode.
- set_file_open_flags(flags)¶
- Parameters:
flags (
int
) – the file open flags.
Set the checkout file open flags. These flags are platform dependent, e.g. on Unix use O_CREAT, O_TRUNC, etc.
- set_notify_flags(flags)¶
- Parameters:
flags (
Ggit.CheckoutNotifyFlags
) – aGgit.CheckoutNotifyFlags
.
Set the checkout notify flags.
- set_paths(paths)¶
-
Set the list of file paths to checkout. If paths is
None
, then all files will be checked out.
- set_strategy(strategy)¶
- Parameters:
strategy (
Ggit.CheckoutStrategy
) – aGgit.CheckoutStrategy
.
Set the checkout strategy.
- set_target_directory(directory)¶
-
Set the checkout target directory.
- set_their_label(label)¶
-
Set the checkout their label.
- do_notify(why, path, baseline, target, workdir) virtual¶
- Parameters:
why (
Ggit.CheckoutNotifyFlags
) –path (
str
) –baseline (
Ggit.DiffFile
) –target (
Ggit.DiffFile
) –workdir (
Ggit.DiffFile
) –
- Return type:
Property Details¶
- Ggit.CheckoutOptions.props.ancestor_label¶
-
Ancestor label
- Ggit.CheckoutOptions.props.baseline¶
-
Baseline
- Ggit.CheckoutOptions.props.dir_mode¶
-
Dir mode
- Ggit.CheckoutOptions.props.disable_filters¶
-
Disable filters
- Ggit.CheckoutOptions.props.file_mode¶
-
File mode
- Ggit.CheckoutOptions.props.file_open_flags¶
-
File open flags
- Ggit.CheckoutOptions.props.notify_flags¶
- Name:
notify-flags
- Type:
- Default Value:
- Flags:
The checkout notify flags.
- Ggit.CheckoutOptions.props.our_label¶
-
Our label
- Ggit.CheckoutOptions.props.strategy¶
- Name:
strategy
- Type:
- Default Value:
- Flags:
Strategy
- Ggit.CheckoutOptions.props.target_directory¶
-
Target directory