git-submanage
Simple scripts to manage git submodules
Usage
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.
Scripts
git-sub-commit-changelog
Commit the changelog for a pending submodule
Commits the updated submodule with the changelog as the commit description.
git-sub-ff-and-commit
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 $*"
git-sub-update
Apply remote changes to submodules.
Sync all urls, update HEAD to match remote, and use master branch if it's at HEAD.
git-use-branch-if-already-there
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).
License
MIT

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
