From: W. Trevor King Date: Wed, 28 Nov 2012 16:53:34 GMT Subject: Re: [PATCH v4 0/4] git-submodule add: Add --local-branch option (summary) Message-ID: <20121128165334.GA20483@odin.tremily.us> In-Reply-To: <20121128130903.GB15786@odin.tremily.us> On Wed, Nov 28, 2012 at 08:09:03AM -0500, W. Trevor King wrote: > * A new 'submodule pull' for tracking the submodule's remote, which is > pulling --ff-only origin/$branch into a whatever state the submodule > is currently in. If any changes were made to submodule $shas, > optionally commit them with a shortlog-generated commit message. I thought of a better idea on the train. How about adding `--remote` to `submodule update` that overrides the gitlinked SHA-1 with the SHA-1 for origin/$branch? All of the other checkout/merge/rebase functionality is untouched. The only thing that changes is where we look for the update. I'm working up the patch now, and will submit v5 shortly. -- This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy