workdir

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package workdir resolves the td database root directory, supporting git worktree redirection via .td-root files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveBaseDir

func ResolveBaseDir(baseDir string) string

ResolveBaseDir checks for a .td-root file in the given directory. If found, it returns the path contained in that file (pointing to the main worktree's root). Otherwise, returns the original baseDir unchanged. This enables git worktrees to share a single td database with the main repo.

Types

This section is empty.

Jump to

Keyboard shortcuts

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