Versions in this module Expand all Collapse all v0 v0.27.1 Sep 16, 2025 v0.26.0 Sep 14, 2025 Changes in this version + var ErrBranchNotFound = errors.New("branch not found in hook context") + var ErrKeyFileInvalid = errors.New("git-crypt key file is invalid or corrupted") + var ErrKeyFileNotFound = errors.New("git-crypt key file not found") + var ErrRepositoryPathNotFound = errors.New("repository path not found in hook context") + var ErrWorktreePathNotFound = errors.New("worktree path not found in hook context") + type Detector struct + func NewDetector(fs fs.FS) *Detector + func (d *Detector) DetectGitCryptUsage(repoPath string) (bool, error) + type KeyManager struct + func NewKeyManager(fs fs.FS, git git.Git, prompt prompt.Prompter) *KeyManager + func (k *KeyManager) FindGitCryptKey(repoPath string) (string, error) + func (k *KeyManager) PromptUserForKeyPath() (string, error) + func (k *KeyManager) ValidateKeyFile(keyPath string) error + type WorktreeCheckoutHook struct + func NewWorktreeCheckoutHook() *WorktreeCheckoutHook + func (h *WorktreeCheckoutHook) Execute(_ *hooks.HookContext) error + func (h *WorktreeCheckoutHook) Name() string + func (h *WorktreeCheckoutHook) OnWorktreeCheckout(ctx *hooks.HookContext) error + func (h *WorktreeCheckoutHook) Priority() int + func (h *WorktreeCheckoutHook) RegisterForOperations(registerHook func(operation string, hook hooks.WorktreeCheckoutHook) error) error + type WorktreeSetup struct + func NewWorktreeSetup(fs fs.FS) *WorktreeSetup + func (s *WorktreeSetup) SetupGitCryptForWorktree(repoPath, worktreePath, keyPath string) error