Documentation
¶
Index ¶
- func BranchMetaPath(root, branch string) string
- func BranchNameFromDir(name string) string
- func EnsureSessionState(state *State)
- func FindRoot(start string) (string, error)
- func LogsPath(root string) string
- func ReadBranchMeta(dir string) (string, bool, error)
- func RepoWorktreePath(root, branch, repoDir string) string
- func SaveState(root string, state State) error
- func StatePath(root string) string
- func UseBranchDirs(root string) bool
- func WorksetFile(root string) string
- func WorktreeBranchPath(root, branch string) string
- func WorktreeDirName(branch string) string
- func WorktreeName(branch string) string
- func WorktreesPath(root string) string
- func WriteBranchMeta(root, branch string) error
- type SessionState
- type State
- type Workspace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BranchMetaPath ¶
func BranchNameFromDir ¶
func EnsureSessionState ¶ added in v0.2.0
func EnsureSessionState(state *State)
func RepoWorktreePath ¶
func UseBranchDirs ¶
func WorksetFile ¶
func WorktreeBranchPath ¶
func WorktreeDirName ¶
func WorktreeName ¶
func WorktreesPath ¶
func WriteBranchMeta ¶
Types ¶
type SessionState ¶ added in v0.2.0
type State ¶
type State struct {
CurrentBranch string `json:"current_branch"`
Sessions map[string]SessionState `json:"sessions,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.