Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Okay, I’ve just got to know: what’s up with the commit messages? I’ve never seen anyone just straight up use numbers before.


Wow, you're not joking—there are 13 commits where the messages are just "1" or whatever the number is. There's also "w", "w2", and "w3".

It has the energy of someone who has been forced into version control and deeply resents it.


Definitely has big "index.old.older.bak_1.bak_2.asp" energy.


secret cabal binary codes /s


Looks like something a self-taught dev would do (ask how I know), or someone who usually works fully solo. Maybe it's a ML community thing?

I might do something like this if I was in a rush and just needed a save point, especially if I was working on a branch I knew I'd squash and merge with a more meaningful commit message. I certainly wouldn't be proud of it, but I might do it.


The main branch history looks reasonably clean. Looks like they generally squash-on-merge (and probably delete the branch on merge), in that case the detailed commit messages are lost anyway.

Completely valid commit strategy if you ask me (even though I bet some might beg to differ).


If you squash your prs there is no point in spending time on making individual commits nice and isolated or their messages as they'll be aggregated into one anyway.

When you do large PRs you want to checkpoint your work and commits have less meaningful descriptions, it's just next step of steps that you couldn't plan ahead, they're popping up as you go.


Not sure why you're downvoted, because it looks exactly like that (all changes go into PRs, and PRs are then squashed on merge).


It makes it easier to know what you are squashing.

My approach is to combine commit messages when squashing. With that approach they are useful.


The fact that you can do that indicates that they could be simply separate PRs merged to main branch independently instead. It's usually desirable as it avoids longer living PR braches that tend to create conflicts and are harder to review.


It is a good point. In many cases, like solo or small teams the conflicts are not a big problem, but I see what you are saying. I have also been in teams that used feature flags more heavily, and it is a possible solution, too.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: