Skip to main content

Module update

Module update 

Source
Expand description

Orchestration for krypt update.

Fetches the dotfiles repo from origin (HTTPS only — gix 0.83 has no SSH transport; see the follow-up issue for the tracking item), fast-forward- advances the local branch, updates the working tree, then re-runs link to deploy any new files.

A dirty working tree is always an error: commit, stash, or discard changes before running krypt update. Auto-stash was removed pending gix gaining stash support; see the follow-up issue for re-adding it.

§HTTPS-only note

gix 0.83 does not have an SSH transport, so only HTTPS URLs are supported. SSH-based remote URLs will fail with a connection error from gix. This limitation will be lifted once gitoxide ships SSH support.

Structs§

HookSummary
Summary of post-update hook execution.
UpdateOpts
Inputs to update.
UpdateReport
Summary returned by a successful update.

Enums§

UpdateError
Errors from update.

Functions§

update
Pull the dotfiles repo and re-deploy.