libfossil
fsl_ckout_revert_opt Struct Reference

Options for passing to fsl_ckout_revert(). More...

#include "checkout.h"

Collaboration diagram for fsl_ckout_revert_opt:

Data Fields

fsl_ckout_revert_f callback
 Optional callback to notify the client of what gets reverted.
void * callbackState
 State for this->callback.
char const * filename
 File or directory name to revert.
bool relativeToCwd
 Interpret filename as relative to cwd if true, else relative to the current checkout root.
bool scanForChanges
 If true, fsl_vfile_changes_scan() is called to ensure that the filesystem and vfile tables agree.
fsl_id_bag const * vfileIds
 An alternative to assigning this->filename is to point this->vfileIds to a bag of vfile.id values.

Detailed Description

Options for passing to fsl_ckout_revert().

Definition at line 2172 of file checkout.h.

Field Documentation

◆ callback

fsl_ckout_revert_f fsl_ckout_revert_opt::callback

Optional callback to notify the client of what gets reverted.

Definition at line 2203 of file checkout.h.

◆ callbackState

void* fsl_ckout_revert_opt::callbackState

State for this->callback.

Definition at line 2207 of file checkout.h.

◆ filename

char const* fsl_ckout_revert_opt::filename

File or directory name to revert.

See also this->vfileIds.

Definition at line 2176 of file checkout.h.

◆ relativeToCwd

bool fsl_ckout_revert_opt::relativeToCwd

Interpret filename as relative to cwd if true, else relative to the current checkout root.

This is ignored when this->vfileIds is not NULL.

Definition at line 2190 of file checkout.h.

◆ scanForChanges

bool fsl_ckout_revert_opt::scanForChanges

If true, fsl_vfile_changes_scan() is called to ensure that the filesystem and vfile tables agree.

If the client code has called that function, or its equivalent, since any changes were made to the checkout then this may be set to false to speed up the revert process.

Definition at line 2198 of file checkout.h.

◆ vfileIds

fsl_id_bag const* fsl_ckout_revert_opt::vfileIds

An alternative to assigning this->filename is to point this->vfileIds to a bag of vfile.id values.

If this member is not NULL, fsl_ckout_revert() will ignore this->filename.

See also
fsl_filename_to_vfile_ids()

Definition at line 2184 of file checkout.h.


The documentation for this struct was generated from the following file: