]> quire.kejadlen.dev Git - quire.git/commit
Move repo name validation into Repo
authorAlpha Chen <alpha@kejadlen.dev>
Mon, 27 Apr 2026 17:51:46 +0000 (17:51 +0000)
committerAlpha Chen <alpha@kejadlen.dev>
Mon, 27 Apr 2026 17:57:28 +0000 (10:57 -0700)
commitd837788b9caf17f436eb8db21c7cea7c0e9fc74c
tree30fdf728c74cfbb716d6868d873b9cf81bd5b44d
parent326769ffc36b032ad39dcc2fb84de724a606601f
Move repo name validation into Repo

The validate_repo_name free function is now Repo::validate_name, a
private method. Repo gains two constructors: new(base, name) for
name-based construction and from_path(base, path) for path-based
construction. Quire::repo and Quire::repo_from_path delegate to these.

Assisted-by: GLM-5.1 (zai/glm-5.1)
src/quire.rs