New Features
- support cloning a single revision
A full object ID passed through with_ref_name() produced an object-ID refspec mapping and panicked while clone assumed every mapping had a name. Branch and tag checkout also retained ordinary clone tracking semantics instead of offering a single-revision mode.
Add PrepareFetch::with_revision() and gix clone --revision for full refs, HEAD, and full object IDs. Revision clones use a one source-only implicit refspec, detach HEAD to the fetched commit, create no ordinary refs, persist no fetch refspec, and disable tag following. Existing with_ref_name() and --ref behavior stays unchanged.
This follows Git commit 337855629f59 (builtin/clone: teach git-clone(1) the --revision= option) and its t/t5621-clone-revision.sh behavior.
Commit Statistics
- 7 commits contributed to the release over the course of 30 calendar days.
- 30 days passed between releases.
- 1 commit was understood as conventional.
- 1 unique issue was worked on: [#1930]
Commit Details
<csr-read-only-do-not-edit>