#10256·jj

jj-lib API documentation: which paths are relative vs. absolute, if relative, relative to what. Also canonicalized or not.

Author: drieberCreated Sep 23, 2026Updated Sep 23, 2026

I wish WorkspaceStore and a few other related APIs in jj-lib would document when a path is relative or absolute, and if relative, relative to what. Also in some instances whether the path is canonicalized or not. At a minimum I think these APIs could use more documentation:

  • WorkspaceStore::add
  • WorkspaceStore::get_workspace_path
  • Workspace::workspace_root
  • Workspace::repo_path
  • WorkspaceLoaderFactory::create
  • WorkspaceLoader::workspace_root
  • WorkspaceLoader::repo_path
  • RepoLoader::init_from_file_system (arg repo_path)
  • Also some of the APIs in lib/testutils/src/lib.rs