Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Repository_Checkout_Configuration

mattt edited this page Aug 19, 2020 · 1 revision

Repository.Checkout.Configuration

public struct Configuration

Properties

`default`

var `default` = try! Configuration()

disableFilters

Don't apply filters like CRLF conversion

var disableFilters:​ Bool

directoryMode

Default is 0755

var directoryMode:​ Int

fileMode

Default is 0644 or 0755 as dictated by blob

var fileMode:​ Int

strategy

Default will be a safe checkout

var strategy:​ Strategy?

allowConflicts

makes SAFE mode apply safe file updates even if there are conflicts (instead of cancelling the checkout).

var allowConflicts:​ Bool

conflictResolution

var conflictResolution:​ ConflictResolution?

removeUntracked

means remove untracked files (i.e. not in target, baseline, or index, and not ignored) from the working dir.

var removeUntracked:​ Bool

removeIgnored

means remove ignored files (that are also untracked) from the working directory as well.

var removeIgnored:​ Bool

updateOnly

means to only update the content of files that already exist. Files will not be created nor deleted. This just skips applying adds, deletes, and typechanges.

var updateOnly:​ Bool

updateIndex

!prevents checkout from writing the updated files' information to the index.

var updateIndex:​ Bool

refreshIndex

checkout will reload the index and git attributes from disk before any operations. Set to false to disable.

var refreshIndex:​ Bool

overwriteIgnored

!prevents ignored files from being overwritten. Normally, files that are ignored in the working directory are not considered "precious" and may be overwritten if the checkout target contains that file.

var overwriteIgnored:​ Bool

removeExisting

!prevents checkout from removing files or folders that fold to the same name on case insensitive filesystems. This can cause files to retain their existing names and write through existing symbolic links.

var removeExisting:​ Bool
Clone this wiki locally