How to write git commit messages for submodule updates?

I always try to write good git commit messages for commits that didn't do anything except updates that commit the submodule. What I really want to write is "just read the fake subscription submodule messages!"

Perhaps a slightly nicer solution, is there something that goes into the submodule and combines all the messages, since the previous commenting was included in some beautiful way and automatically makes this message?

+6
source share
1 answer

I donโ€™t know why this affects you, but I think that there are probably only two main reasons why you are going to update your submodules:

  • You found an error in the submodule, and it has already been fixed upstream. In this case, Iโ€™ll just write:

    Update submodule XXX to vY.Z to add feature KKKK

    You probably also want to add an additional detailed description of how this function affects your repo, etc.

  • You just want to synchronize your submodules with the latest versions and don't care what has been fixed or changed:

    Update submodule XXX to latest

+1
source

All Articles