DEV Community

Discussion on: A Guide to writing Industry Standard Git Commit Message

Collapse
 
kelvinskell profile image
Kelvin Onuchukwu

What prefix would be best to use when you're making an update to a feature?
Let's assume you've already added the feature and you're now making an update to it, should you use chore or "update"?

Collapse
 
layzee profile image
Lars Gyrup Brink Nielsen

"refactor" changes the implementation of existing functionality. No observable change from the user's perspective.

"feat" can add a new feature or introduce breaking changes to existing functionality. Add "BREAKING CHANGES:" to the commit body or an exclamation point to the commit type, for example "feat!: make name parameter mandatory" for an API.

Collapse
 
jcandan profile image
James Candan

Does your update add a feature enhancement or simply change implementation. I would use feat for the former and change for the later.

Collapse
 
tuasegun profile image
Segun Tuase

You could also use feat, I wouldn’t want you to overthink it

Collapse
 
tuasegun profile image
Segun Tuase

I’m not really sure and I wouldn’t love to direct you wrongly