From: Philip Oakley Date: Thu, 16 Jan 2014 22:15:59 GMT Subject: Re: [PATCH v4 6/6] Documentation: Describe 'submodule update' modes in detail Message-ID: <777D3478B53C4A3F8B4326A96B3F048E@PhilipOakley> In-Reply-To: From: "Junio C Hamano" > "W. Trevor King" writes: > [...] >> @@ -155,13 +155,31 @@ it contains local modifications. >> >> update:: >> Update the registered submodules, i.e. clone missing submodules and >> - checkout the commit specified in the index of the containing >> repository. >> - This will make the submodules HEAD be detached unless `--rebase` or >> - `--merge` is specified or the key `submodule.$name.update` is set >> to >> - `rebase`, `merge` or `none`. `none` can be overridden by specifying >> - `--checkout`. Setting the key `submodule.$name.update` to >> `!command` >> - will cause `command` to be run. `command` can be any arbitrary >> shell >> - command that takes a single argument, namely the sha1 to update to. >> + checkout the commit specified in the index of the containing >> + repository. The update mode defaults to 'checkout', but be nit: s/but be/but can be/ ? >> + configured with the 'submodule..update' setting or the >> + '--rebase', '--merge', or 'checkout' options. > [...]