Simple scripts to manage git submodules
Clone and add the scripts to your $PATH: Either link them to a directory already in your PATH, or add this folder to your PATH.
Commit the changelog for a pending submodule
Commits the updated submodule with the changelog as the commit description.
Grab master if it's at our current commit, skip to origin's master, commit a changelog to parent repo.
To apply to all submodules, you can use:
git submodule foreach "cd - ; echo git sub-ff-and-commit \$name $*"
Apply remote changes to submodules.
Sync all urls, update HEAD to match remote, and use master branch if it's at HEAD.
Checkout input branch if it matches the current commit
Useful to ensure submodules are using a branch (since they're usually at the same commit as master, but the branch isn't automatically checked out).
Generally, this is used by other scripts (sub-update and sub-ff-and-commit).
MIT