[ISSUE-ID]: Title
[Problem]
State problem and customer impact
[Solution]
Describe and justify solution
[Test]
Describe automated/manual testingHow to Write a Git Commit Message (2014)
41–50 of 121 posts
Re: How to Write a Git Commit Message (2014)
#42The only one that really drives me crazy is > Wrap the body at 72 characters Why? Because the git CLI doesn't wrap properly? To borrow a quote, that seems like a 'you' problem, not a me problem. Maybe I'm just biased because these days I almost entirely interact with git through a GUI (either desktop client or web interface), and though I use the CLI occasionally (mostly for branch management, sometimes for quick com…
Sounds like your markdown interpreter has an issue, or you're leaving lots of white space at the end of your lines. Generally, in markdown, if you insert a line break, it won't translate to an explicit line break unless you put two in a row, or if there is 2+ spaces at the end of the line. See [1] for an illustration [1]( https://johnmacfarlane.net/babelmark2/?text=This+line%0Ashou... )
Re: How to Write a Git Commit Message (2014)
#43My team uses a git commit message convention that helps us read fast and also is parsable by toolchains. We agree on a short list of leading active verbs: Add = Create a capability e.g. feature, test, dependency. Cut = Remove a capability e.g. feature, test, dependency. Fix = Fix an issue e.g. bug, typo, accident, misstatement. Bump = Increase the version of something e.g. dependency. Make = Change the build process,…
Some of the active verbs are also commands that automatically close/reference issues right out of the box on GitHub & BitBucket (& I'm sure on GitLab too)
Re: How to Write a Git Commit Message (2014)
#44My personal, subjective impression: Commits are getting smaller and smaller nowadays. As in: In the subversion days, many people commited only few times a day, sometimes not for several days. SVN commits of course involved a sync with the server (a "push" in git lingo), and thus usually represented a much larger increment with a substantial change to the code base [X] With git, it became very common to structure chan…
https://github.com/ribasushi/dbix-class/commit/1cf609901
Something like that I take it? :)
Re: How to Write a Git Commit Message (2014)
#45I can't believe believe people write essays on how to write a git commit message. It even includes an example of not including a full stop - I'm all for examples, but sometimes they are not necessary. Do other people not have actual work to do ?
I can't believe people whine about ways I spend my time (or what I choose to write about). It's not like you are being forced to read any of it.
Re: How to Write a Git Commit Message (2014)
#46My personal, subjective impression: Commits are getting smaller and smaller nowadays. As in: In the subversion days, many people commited only few times a day, sometimes not for several days. SVN commits of course involved a sync with the server (a "push" in git lingo), and thus usually represented a much larger increment with a substantial change to the code base [X] With git, it became very common to structure chan…
I find tons of small commits a clutter and waste of time. I don't see any reason for doing so. On the contrary I can see disadvantage - reading and understanding a history later may become difficult task. After all what counts is your full chunk of work, reviewed via pull request, and merged to master. It should be treated as a whole. Has it really become so common with git? I don't see such trend around me.
Re: How to Write a Git Commit Message (2014)
#47Are there any tools that allow you to initiate a commit as an 'intention stack' for work I am about to do, rather than work I have already done?
I'd love to be able to write an intent message "refactor XYZ.." before starting in on that activity, then when I have to go down another rabbit hole in the middle I push another intent message to the stack, then pop back out afterward and continue with XYZ. The final overall commit message could be auto generated from the initial intention and all tangents.
Re: How to Write a Git Commit Message (2014)
#48If you use a code management tool like BitBucket or GitHub, it seems like the unit of work is less a commit and more a PR. A PR's description can always be edited and refined for future engineers, and a PR (almost) always represents a block of work that can be reverted. Instead of creating a hundred different approaches to writing commits that engineers essentially have to get right the first time, why not just focus on documentation in the form of PR's? It seems like if you could trivially tie a commit back to the PR and ticket it came from, most of these problems would be solved.
Re: How to Write a Git Commit Message (2014)
#49The main issue with commits is that they end up representing more than a single logical change. Are there any tools that allow you to initiate a commit as an 'intention stack' for work I am about to do, rather than work I have already done? I'd love to be able to write an intent message "refactor XYZ.." before starting in on that activity, then when I have to go down another rabbit hole in the middle I push another i…
Re: How to Write a Git Commit Message (2014)
#50Opens the pod bay doors
Instead of
Open the pod bay doors
?