Re: Auto update submodules after merge and reset
- From
Phil Hord <phil.hord@gmail.com>
- Date
- Dec 12, 2011, 23:43 UTC
- Message-ID
- <CABURp0r37+VHBVVKepHPC4jwa-wJ0b+qwLrhhFR8KXnMQYTT3w@mail.gmail.com>
- In-Reply-To
- <4EE682A3.8070704@web.de>
On Mon, Dec 12, 2011 at 5:39 PM, Jens Lehmann <Jens.Lehmann@web.de> wrote:
Show 6 quoted lines
> Am 11.12.2011 22:15, schrieb Andreas T.Auer: >> In http://thread.gmane.org/gmane.comp.version-control.git/183837 was discussed whether the gitlink in the superproject should be set to all-zero if updates follow the tip or maybe use the SHA1 of the commit when the submodule was added. I think the gitlink should be updated everytime when a new commit in the superproject is created. > > Nope, only when "git submodule update" is run. Otherwise you'll spray the > history with submodule updates totally unrelated to the commits in the > superproject, which is rather confusing.
And this is why my superproject is a makefile, a .gitmodules file and a bunch of gitlinks. We only use it to track the advancement of submodule activity.
So yes, I want my superproject's gitlinks to update automatically. I just don't know a smart way to make that happen.
Phil