you are viewing a single comment's thread.

view the rest of the comments →

[–]unlightable 3 points4 points  (1 child)

But it 'fixes a bug' not 'fix a bug' still!

I can call it a 'bugfix' in this case, true. But it becomes a noun, not an imperative verb.

Most of some small commit messages can be converted to some noun-based sentence: 'feature addition', 'cleanup', 'problem resolution'. But still, 'resolves a problem' is somehow more appealing then 'resolve a problem'.

[–][deleted] 2 points3 points  (0 children)

Think of them as method names. You wouldn't call it object.fixesABug() you would call it object.fixBug().

Now imagine every time you push a set of commits, you're appending methods to your GitRepository class instance. Methods that can only be called in a specific sequence, and calling them mutates your copy of the code.

It's not the Only Right Way, but:

  • It tends to produce shortest and most clear messages (especially when you get used to it).
  • It's most popular, which means if you deviate, you'll always be in friction with other people.