Skip to content

Commit ba196c2

Browse files
authored
Rollup merge of #113740 - tgross35:use-shallow-submodules, r=Mark-Simulacrum
Update `.gitmodules` to use shallow submodule clones This change makes submodule checkouts shallow by default. This significantly reduces the time needed to do a recursive checkout when `--shallow-submodules` is not specified, such as when `x` is not being used.
2 parents 14e11c8 + ffad01a commit ba196c2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: .gitmodules

+11
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,45 @@
11
[submodule "src/doc/nomicon"]
22
path = src/doc/nomicon
33
url = https://github.com/rust-lang/nomicon.git
4+
shallow = true
45
[submodule "src/tools/cargo"]
56
path = src/tools/cargo
67
url = https://github.com/rust-lang/cargo.git
8+
shallow = true
79
[submodule "src/doc/reference"]
810
path = src/doc/reference
911
url = https://github.com/rust-lang/reference.git
12+
shallow = true
1013
[submodule "src/doc/book"]
1114
path = src/doc/book
1215
url = https://github.com/rust-lang/book.git
16+
shallow = true
1317
[submodule "src/doc/rust-by-example"]
1418
path = src/doc/rust-by-example
1519
url = https://github.com/rust-lang/rust-by-example.git
20+
shallow = true
1621
[submodule "library/stdarch"]
1722
path = library/stdarch
1823
url = https://github.com/rust-lang/stdarch.git
24+
shallow = true
1925
[submodule "src/doc/rustc-dev-guide"]
2026
path = src/doc/rustc-dev-guide
2127
url = https://github.com/rust-lang/rustc-dev-guide.git
28+
shallow = true
2229
[submodule "src/doc/edition-guide"]
2330
path = src/doc/edition-guide
2431
url = https://github.com/rust-lang/edition-guide.git
32+
shallow = true
2533
[submodule "src/llvm-project"]
2634
path = src/llvm-project
2735
url = https://github.com/rust-lang/llvm-project.git
2836
branch = rustc/16.0-2023-06-05
37+
shallow = true
2938
[submodule "src/doc/embedded-book"]
3039
path = src/doc/embedded-book
3140
url = https://github.com/rust-embedded/book.git
41+
shallow = true
3242
[submodule "library/backtrace"]
3343
path = library/backtrace
3444
url = https://github.com/rust-lang/backtrace-rs.git
45+
shallow = true

0 commit comments

Comments
 (0)