DEV Community

Discussion on: ⛔ Squash commits considered harmful ⛔

Collapse
 
dadyasasha profile image
Alex Pushkarev

I really liked the way you explained the way squash is working. But it seems that the main argument against squashing is that it just drops the history?

That's fair, but it doesn't mean squash is bad, it means one just need to know the cost, correct?

Collapse
 
wesen profile image
Manuel Odendahl

Yes. But most people argue that it "cleans up" history, because they are unaware that you can easily hide the right parent when printing out logs, for example. I find losing history a very high cost to avoid using a pretty-print flag.

Collapse
 
dadyasasha profile image
Alex Pushkarev

That's a very good argument. The other perspective to consider is that more and more people don't use git from command line so they see whatever they git tool shows, which may be unable to do pretty-print in a firts place