DEV Community

Discussion on: One Commit. One Change.

Collapse
 
jmfayard profile image
Jean-Michel πŸ•΅πŸ»β€β™‚οΈ Fayard • Edited

Reverting easily is the benefit of this approach, but what is its cost?

  • More time spent doing git stuff than doing useful stuff.
  • An history with more uninteresting commits like "Fix typo in comment" and "Refactoring name of function xxx".

So what the cost/benefit analysis?

I guess it depends on

  • how often you revert
  • how easy is it to revert part of a non-atomic commit

I would say reverting is rather rare and reverting part of a non-atomic commit is rather easy.
Not convinced.