Skip to content

Commit 501dbf4

Browse files
committed
docs(git): SHA256 repository support
1 parent 917b6b0 commit 501dbf4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/doc/src/reference/unstable.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,6 +1373,7 @@ Valid operations are the following:
13731373

13741374
* `shallow-index` - perform a shallow clone of the index.
13751375
* `shallow-deps` - perform a shallow clone of git dependencies.
1376+
* `sha256` - allow SHA256 git repositories
13761377

13771378
**Details on shallow clones**
13781379

@@ -1384,6 +1385,11 @@ Valid operations are the following:
13841385
* When the unstable feature is on, fetching/cloning a git repository is always a shallow fetch. This roughly equals to `git fetch --depth 1` everywhere.
13851386
* Even with the presence of `Cargo.lock` or specifying a commit `{ rev = "…" }`, gitoxide and libgit2 are still smart enough to shallow fetch without unshallowing the existing repository.
13861387

1388+
**Details on SHA256 git repositories**
1389+
1390+
* To enable SHA256 git repositories, add `-Zgit=sha256`.
1391+
* SHA256 git repositories are only supported when using libgit2.
1392+
13871393
## script
13881394

13891395
* Tracking Issue: [#12207](https://github.com/rust-lang/cargo/issues/12207)

0 commit comments

Comments
 (0)