I want to write a git commit mesage, but I don't know if I can add implementation…
- User
I want to write a git commit mesage, but I don't know if I can add implementation details or i the messages has to be understood by everyone not only the dev team.
My question arises from this:
I have added an bitmap icon to a wxbitmapcombobox item, which is the loaded model of my application.
My first thought was to make it like this:
"Add connected icon to loaded model"
But it leaves information out like in what part of my program was it located the change, then I thought this:
"Add connected icon to loaded model combobox item"
But although it is more informative, it adds the extra dev info of a combobox existance, which I don't know if that is correct or not. Give me some advices.
- Assistant
In general, git commit messages should be concise, informative, and written in a way that can be understood by everyone, not just the development team. It's important to provide enough context so that someone reviewing the commits in the future can understand the changes that were made.
Based on your example, "Add connected icon to loaded model combobox item" could be a good choice. It provides specific information about what was changed (the addition of an icon), where it was added (to the loaded model combobox item), and the purpose of the change (to add a connected icon). This message is clear and would likely be helpful to someone reviewing the commit history.
If you feel that "loaded model combobox item" is too technical and not necessary for a broader audience, you could simplify it to something like "Add connected icon to model dropdown" or "Add connected icon to model menu." This still provides important context without getting too deep into technical details.
Overall, the goal is to strike a balance between providing enough information for others to understand the changes and keeping the commit message clear and concise. It's okay to include some implementation details, but try to focus on the high-level purpose of the change and how it impacts the application.