datalad-core/datalad_core/annex_utils
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Michael Hanke 249632ca13
All checks were successful
Codespell / Check for spelling errors (pull_request) Successful in 58s
Conventional commits / check-messages (pull_request) Successful in 1m4s
Ruff / Code linting (pull_request) Successful in 1m9s
Type annotation (PR) / check (pull_request) Successful in 1m29s
Unit tests (Linux) / check (pull_request) Successful in 2m29s
Codespell / Check for spelling errors (push) Successful in 31s
Ruff / Code linting (push) Successful in 39s
Type annotation (project) / check (push) Successful in 1m38s
Unit tests (Linux) / check (push) Successful in 2m23s
feat: clone_repo(), clone_repo_mirror(), and clone_annexrepo()
This changeset brings three variants of a function to clone a repository.

`clone_repo()` is a low-level helper, and a thin frontend to `git
clone`. It main purpose is to orchestrate progress reporting via
the `ProgressHandler` interface.

`clone_repo_mirror()` is a similarly low-level variant, focused on
wrapping `git clone --mirror`. it is implemented as a dedicated
function, because the `--mirror` flag determines much of the
parameter values of `clone_repo()`. A dedicated function appears cleaner
than a sophisticated parameter combination validation.

`clone_annexrepo()` is envisioned to be the standard workhorse. It
wraps `clone_repo()` and supports the initialization of a local annex.

The dependency on datasalad is bumped to 0.7, which introduced the
ability to have `iter_subproc()` yield `stderr` -- which is used for
reading and processing `git clone` progress reports.
2026-05-29 20:46:28 +02:00
..
tests feat: establish module for (small) annex utility functions 2026-03-19 17:41:49 +01:00
__init__.py feat: clone_repo(), clone_repo_mirror(), and clone_annexrepo() 2026-05-29 20:46:28 +02:00