pub fn detached_label(head: &str) -> StringExpand description
The label a detached worktree is shown under. Display only: a detached HEAD has no branch and therefore no canonical path, and nothing ever moves a worktree under this name.
use majordomus_cli::worktree::detached_label;
assert_eq!(detached_label("6df5eaf11efa4ccdcbca8f1990763f749256390e"), "detached/6df5eaf11efa");
assert_eq!(detached_label("abc"), "detached/abc");