Skip to content

daft layout

Manage worktree layouts

Description

Manage worktree layouts for daft repositories.

Layouts control where worktrees are placed relative to the bare repository. Built-in layouts:

contained Worktrees inside the repo directory (bare required) contained-classic Like contained but default branch is a regular clone contained-flat Like contained but branch slashes flattened to dashes sibling Worktrees next to the repo directory (default) nested Worktrees in a hidden subdirectory centralized Worktrees in a global ~/worktrees/ directory

Use daft layout list to see all available layouts including custom ones defined in your global config (~/.config/daft/config.toml).

Use daft layout show to see the resolved layout for the current repo.

Use daft layout transform <layout> to convert a repo between layouts.

Use daft layout default to view or change the global default layout.

Usage

daft layout

Global Options

OptionDescription
-h, --helpPrint help information
-V, --versionPrint version information

Released under the MIT License.