worktree

package
v0.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolvePath

func ResolvePath(repoPath, repoName, branch, format string) string

ResolvePath computes the worktree path based on format string. Supports:

  • "{branch}" or "./{branch}" = nested inside repo
  • "../{repo}-{branch}" = sibling to repo
  • "~/worktrees/{repo}-{branch}" = centralized folder
  • "/absolute/{repo}-{branch}" = absolute path

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL