From b10603b1fa079b1d4f60ea33673c51520f2122e1 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Thu, 12 Nov 2015 09:31:28 -0500 Subject: [PATCH] add notes to git scripts --- link_git_modules | 6 ++++++ update_git_modules | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/link_git_modules b/link_git_modules index e08639c..8f95346 100755 --- a/link_git_modules +++ b/link_git_modules @@ -1,5 +1,11 @@ #!/bin/sh +# This command sets up any git submodules in the project. +# Generally, this only needs to be run once on a freshly cloned +# project, but won't harm anything if run later, provided +# you modify it to accomodate any submodules that should *NOT* +# be on the `master` branch. + git submodule init git submodule update diff --git a/update_git_modules b/update_git_modules index ff78f96..9d1c46b 100755 --- a/update_git_modules +++ b/update_git_modules @@ -1,3 +1,7 @@ #!/bin/sh +# This command can be run any time to ensure that all submodules are on +# the most recent commit for the configured branch, as set up +# in the `link_git_modules` script. + git submodule foreach git pull origin -- 2.40.0