Opinions on using "git-subrepo" for package management?

Earlier I asked about using Git Submodules for package management. See that topic:

Opinions on using Git Submodules for package management?

Ginger Bill recommended git subtree instead of git submodule:

I recently found out about git-subrepo.

  • This is an improvement from git-submodule and git-subtree by combining both their functionalities without their drawbacks.

  • Even though you have to separately install it, the best part is that you don’t have to install git-subrepo if you only want to clone and use the repository.

  • Works on Linux, BSD, OSX, and Git for Windows.

You can read about all the benefits here: git-subrepo Benefits.

How I use this

I have a deps directory that contains other third-party Odin dependency packages as subrepos in my project.

I remember looking into that and I don’t remember why I’m not using it. All I know is that I have a small wrapper around git subtree that makes the commands a bit easier to remember and, more impotantly, stores which state of each subtree is checked out. Because that knowledge was always the big advantage of submodules that subtrees don’t have by default. Anything that doesn’t require every user of the repo to do the magic tricks is nice and both subtree and subrepo seem to fulfill that part :+1: