2018-06-21 13:23:53 -07:00
# Git Submodules
2018-08-28 22:18:24 -07:00
NetNewsWire uses [Git submodules ](https://git-scm.com/book/en/v2/Git-Tools-Submodules ) to include shared frameworks. At this writing (June 2018) they are DB5, RSCore, RSDatabase, RSWeb, RSTree, and RSParser.
2018-06-21 13:23:53 -07:00
2018-08-18 11:04:28 -07:00
After your first checkout:
git submodule init
2018-08-25 10:58:34 -07:00
git submodule update
2018-08-18 11:04:28 -07:00
2018-06-21 13:23:53 -07:00
To add a submodule:
git submodule add https://github.com/username/path
2018-06-21 13:26:37 -07:00
(It’ s unlikely you’ ll need to do that. Adding a submodule is done super-rarely, if ever, and it’ s Brent’ s call.)
2018-07-14 12:32:11 -07:00
To update all submodules to their latest commits:
2018-06-21 13:26:37 -07:00
2018-07-14 12:32:11 -07:00
git submodule foreach git pull origin master
2018-06-23 11:35:55 -07:00
2019-04-15 15:04:58 -07:00
If you messed around with those projects and want to reset them to where the current project thinks
they should be, you can use the command:
git submodule foreach --recursive git reset --hard