chiru-labs / ERC721A

https://ERC721A.org
MIT License
2.5k stars 841 forks source link

keep a branch per tag/version #396

Open kesar opened 2 years ago

kesar commented 2 years ago

useful for gitmodules w foundry

cygaar commented 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

wiasliaw commented 2 years ago

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)