Logo Paket

Handling Module

Types

Type Description

GitLinkOrigin

Functions and values

Function or value Description

cacheGitCommand repoCacheFolder command

Full Usage: cacheGitCommand repoCacheFolder command

Parameters:
    repoCacheFolder : string
    command : string

Returns: string

A git command on the git cache at repoCacheFolder. --git-dir names the repository: git then doesn't take the repository of a parent folder for a broken cache, and safe.bareRepository=explicit allows it

repoCacheFolder : string
command : string
Returns: string

checkForCommitsMadeInDetachedHeadState repoFolder

Full Usage: checkForCommitsMadeInDetachedHeadState repoFolder

Parameters:
    repoFolder : string

repoFolder : string

checkForUncommittedChanges repoFolder

Full Usage: checkForUncommittedChanges repoFolder

Parameters:
    repoFolder : string

repoFolder : string

checkoutTaggedCommit repoFolder

Full Usage: checkoutTaggedCommit repoFolder

Parameters:
    repoFolder : string

repoFolder : string

checkoutToPaketFolder repoFolder hasCheckout cloneUrl cacheCloneUrl commit

Full Usage: checkoutToPaketFolder repoFolder hasCheckout cloneUrl cacheCloneUrl commit

Parameters:
    repoFolder : string
    hasCheckout : bool
    cloneUrl : string
    cacheCloneUrl : string
    commit : string

Checks the commit out in the paket-files at repoFolder. hasCheckout tells whether they hold a checkout, as getCheckedOutCommit does: only a checkout can hold changes that the checkout of the commit would lose

repoFolder : string
hasCheckout : bool
cloneUrl : string
cacheCloneUrl : string
commit : string

extractUrlParts gitConfig

Full Usage: extractUrlParts gitConfig

Parameters:
    gitConfig : string

Returns: string * string option * string * GitLinkOrigin * string option * string option * string option
gitConfig : string
Returns: string * string option * string * GitLinkOrigin * string option * string option * string option

fetchCache repoCacheFolder cloneUrl

Full Usage: fetchCache repoCacheFolder cloneUrl

Parameters:
    repoCacheFolder : string
    cloneUrl : string

repoCacheFolder : string
cloneUrl : string

getCheckedOutCommit repoFolder

Full Usage: getCheckedOutCommit repoFolder

Parameters:
    repoFolder : string

Returns: string option

The commit checked out in the paket-files clone at repoFolder: None when it has no checkout, as a clone that a run left without one, whose HEAD names a commit that none of its files are from

repoFolder : string
Returns: string option

getCommitInPaketFiles repoFolder commitish

Full Usage: getCommitInPaketFiles repoFolder commitish

Parameters:
    repoFolder : string
    commitish : string

Returns: string option

The commit of a commit-ish in the paket-files clone at repoFolder, as a commit or a tag of a lock file

repoFolder : string
commitish : string
Returns: string option

getCurrentHash repoFolder

Full Usage: getCurrentHash repoFolder

Parameters:
    repoFolder : string

Returns: string option
repoFolder : string
Returns: string option

getHash repoFolder commitish

Full Usage: getHash repoFolder commitish

Parameters:
    repoFolder : string
    commitish : string

Returns: string option
repoFolder : string
commitish : string
Returns: string option

getHashFromRemote url branch

Full Usage: getHashFromRemote url branch

Parameters:
    url : string
    branch : string

Returns: string
url : string
branch : string
Returns: string

getHashInCache repoCacheFolder commitish

Full Usage: getHashInCache repoCacheFolder commitish

Parameters:
    repoCacheFolder : string
    commitish : string

Returns: string option
repoCacheFolder : string
commitish : string
Returns: string option

hasClone repoFolder

Full Usage: hasClone repoFolder

Parameters:
    repoFolder : string

Returns: bool

Whether repoFolder holds a clone: its .git is a folder, or a file that names one, as for a submodule or a worktree

repoFolder : string
Returns: bool

paketCheckoutTag

Full Usage: paketCheckoutTag

Returns: string
Returns: string

paketFilesGitCommand repoFolder command

Full Usage: paketFilesGitCommand repoFolder command

Parameters:
    repoFolder : string
    command : string

Returns: string

A git command on the paket-files clone at repoFolder. --git-dir and --work-tree name it: git then doesn't take the repository of the project, which the paket-files are in, for a folder without clone

repoFolder : string
command : string
Returns: string

tagCommitForCheckout repoFolder commit

Full Usage: tagCommitForCheckout repoFolder commit

Parameters:
    repoFolder : string
    commit : string

repoFolder : string
commit : string

Type something to start searching.