Skip to content

Commit

Permalink
[gitmodules] Ignore dirty submodules (#746)
Browse files Browse the repository at this point in the history
Main motivation for this is to make switching between branches faster:
Down from 15 seconds to light-speed.

For things like `git status` and `git diff` I've figured out how to make
them fast without this change: use the `--ignore-submodules` flags. But
for `git checkout` I haven't found an equivalent.

I guess the underlying problem is that the submodules (XRT, etc.) get
dirtied after cloning, and somehow this makes more work for `git`.
Untracked files like `src/runtime_src/core/common/api/version.h` etc
appear. I'm not 100% sure of this.

If someone has an alternative suggestion to getting lighting fast `git
checkout` without this PR: please let me know.
  • Loading branch information
newling authored Sep 4, 2024
1 parent cba6bdf commit a3c5036
Showing 1 changed file with 25 additions and 19 deletions.
44 changes: 25 additions & 19 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
[submodule "third_party/XRT"]
path = third_party/XRT
url = https://github.com/nod-ai/XRT.git
shallow = true
branch = iree-amd-aie-patches
path = third_party/XRT
url = https://github.com/nod-ai/XRT.git
shallow = true
branch = iree-amd-aie-patches
ignore = dirty
[submodule "third_party/mlir-air"]
path = third_party/mlir-air
url = https://github.com/nod-ai/mlir-air.git
shallow = true
path = third_party/mlir-air
url = https://github.com/nod-ai/mlir-air.git
shallow = true
ignore = dirty
[submodule "third_party/aie-rt"]
path = third_party/aie-rt
url = https://github.com/Xilinx/aie-rt.git
shallow = true
path = third_party/aie-rt
url = https://github.com/Xilinx/aie-rt.git
shallow = true
ignore = dirty
[submodule "third_party/bootgen"]
path = third_party/bootgen
url = https://github.com/Xilinx/bootgen.git
shallow = true
path = third_party/bootgen
url = https://github.com/Xilinx/bootgen.git
shallow = true
ignore = dirty
[submodule "third_party/openssl"]
path = third_party/openssl
url = https://github.com/viaduck/openssl-cmake.git
shallow = true
path = third_party/openssl
url = https://github.com/viaduck/openssl-cmake.git
shallow = true
ignore = dirty
[submodule "third_party/iree"]
path = third_party/iree
url = https://github.com/iree-org/iree.git
shallow = true
path = third_party/iree
url = https://github.com/iree-org/iree.git
shallow = true
ignore = dirty

0 comments on commit a3c5036

Please sign in to comment.