Re: [PATCH v3 1/3] git-submodule add: Add -r/--record option
- From
- Sascha Cunz <sascha-ml@babbelbox.org>
- Date
- Nov 23, 2012, 17:24 UTC
- Message-ID
- <10919221.ErD9qLRjsD@blacky>
- In-Reply-To
- <20121123155521.GB14509@book.hvoigt.net>
Am Freitag, 23. November 2012, 16:55:21 schrieb Heiko Voigt:
Show 9 quoted lines
> I am still a little bit undecided about an automatically crafted commit. > > At $dayjob we sometimes update submodules to their tip without any > superproject changes just to make sure we use the newest version. Most > of the time the commit messages are along the lines of "updated > submodule x to master". > > On one hand Junio is right that the person updating to the newest > submodule stuff has no clue what to write in this message.
I've been thinking about that for a while, when I started using submodules. In the end, I concluded, that what I really want to see in the commit message, is something similar to $(git shortlog $OLD_SHA1..$NEW_SHA1).
I've scripted that and taught my CI-Server to do it automatically, if possible. So most of the time, I really don't want an "automatically crafted commit" whenever something causes the tip of a submodule to be at a new SHA1.
Just my $.02, though.
Sascha