Open kesar opened 2 years ago
Good suggestion, I'm a bit surprised gitsubmodules don't support tags yet, but I'll put this on my todo list
Foundry supports using tag, so doesnt need a branch per tag/version.
Example:
$ forge install OpenZeppelin/openzeppelin-contracts@v3.4.2 --no-commit
.gitmodules
doesn't show the tag info, but git submodule status
does.
$ git submodule status
82e6f5376c15341629ca23098e0b32d303f44f02 lib/forge-std (v0.1.0-83-g82e6f53)
+8e0296096449d9b1cd7c5631e917330635244c37 lib/openzeppelin-contracts (v3.4.2)
useful for gitmodules w foundry