ProgrammerHumor

commitMessagesAreForNerds

commitMessagesAreForNerds
https://i.redd.it/dvwe4o7umgbf1.jpeg
Reddit

Discussion

JeremyTwiggs

"Updates" or "." are my favourites

2 days ago
Quicker_Fixer
:redditgold:

And then seeing 99% of the changes are "Re-formatting" of code.

2 days ago
1_4_1_5_9_2_6_5
:ts::js::p::j:

Yes so much this, and then they don't explain anything in the pr and git can't hide the whitespace because everything moved slightly and one line in the middle was changed.

Then after half an hour of reading over it you realise they actually changed ONE line in the whole thing and the bug report was just ai fluff around the fact that a button was misspelled and the api was unreachable because someone trimmed an extra slash out.

Bonus if this person surprised you with a 500 line pr after dozens of 10 liners!

18 hours ago
nonlogin

Minor refactoring

2 days ago
Maleficent_Memory831

Generally, this sort of stuff I squeeze in to actual tickets. We can't "fix" code without there being an official ticket being opened, which is necessary for tracking purposes, and to prevent this sort of shenanigans(*). And then nobody wants to create a ticket for something this minor, which will waste the time of so many people.

Now certainly, if so much stuff piles up that it's major refactoring then that can be useful to make a ticket for it. At the very least it forces other team members to look at it: if you were a genius in this redesign then the others will benefit by learning from your genius; if you were an idiot then they'll notice and suggest you abandon the changes.

(*) That is, someone just wants to sneak in a quicky fix, the boss doesn't need to know, the testers don't need to know, nobody needs to know and it'll just be a secret - until it crashes badly at a customer site :-) I see a lot of this in some repos from way back in the wild west startup days when there were no rules or even code reviews.

2 days ago
DanhNguyen2k
:js:ts:cs:

"various bug fixes" also my thing

2 days ago
Maleficent_Memory831

Subject, verb, predicate. Is "bug" the verb? I have dinged team members in the past for not using full sentences, and sometimes they give a blank look that says "we're not a team, we're an autonomous collective..."

2 days ago
Nick0Taylor0
:j::cs::ts::re::bash:

A predicate INCLUDES the verb, no need (and in fact makes it more confusing) to list them like that. You're mixing two types of classifying words. Noun, Adjective, Verb (just the big ones) is for defining words independently from one another and Subject, predicate, etc is for defining how words are USED in a sentence.
Also commit messages don't ALWAYS need to be full sentences.

Edit: also, also, commit messages are usually written in the imperative, that being the case "fix the bug" is technically a full sentence despite not having a subject (bug is the object, not subject). The subject is whoever the imperative sentence is directed toward.

2 days ago
jecls

I don’t know about all your fancy words, sir; but I prefer “Fixes various bugs” over “Various bug fixes” any day of the week.

1 day ago
Maleficent_Memory831

You are technically correct, the best kind of correct.

2 days ago
Maleficent_Memory831

And where exactly are the managers and team leads that let this through?

These messages are important in the long run, because someone's going to be looking at the history someday to figure out why a certain change was made. As in, I want to remove the code as it seems useless, but let me see why it was added just in case there's a reason I am overlooking.

2 days ago
jecls

Huh, wait till you find out that you, yourself wrote it 3 years ago and didn’t leave any clues as to why.

1 day ago
Maleficent_Memory831

That has indeed happened to me. Especially embarrassing as my thoughts at the time were "what kind of moron wrote this!"

1 day ago
jecls

“Why in gods name would I do that!?” 3 hours of debugging later… oh yeah, every line was there for a reason.

At least I leave explanations now so it doesn’t happen again in another 3 years.

1 day ago
lateinautumn
:m:

I personally use "i am stupid"

2 days ago
YesNoMaybe2552

-fix

2 days ago
IdeaOrdinary48

Plot Twist: The AI made the changes and they were committed without review and the production broke and the server overloaded leading to collapse of civilization. The End

2 days ago
StepLeather819

Ahh yes, matrix ahh moment

2 days ago
Akiraktu-dot-png

this is why I always add copilot as a reviewer to all my pull requests

1 day ago
NoMansSkyWasAlright

I have one on one in one of my repos where I couldn't remember the last time I'd pushed a commit so the message just said "I have no idea what's changed since the last commit. Just pushing now so I have something to roll back to". It was 2200 insertions and 700 deletions.

2 days ago
FIagrant

How do you live like this

1 day ago
DrunkenDruid_Maz

He fixed the max-line-width!

2 days ago
Free_Tomatillo463

That's just somebody who pulled an all-nighter and didn't realize he's been working at this for the past 16 hours. Normal programmer behaviour.

2 days ago
Maleficent_Memory831

When I shave seen this, it's because they tried to do a pull request to the wrong branch and stupidly did not double-check the changes. That is, being in a rush leads to mistakes.

2 days ago
Quicker_Fixer
:redditgold:

You commit every day?

2 days ago
Free_Tomatillo463

Several all-nighters?

2 days ago
CITRONIZER5007
:js::ts:

I love this cat

2 days ago
FACastello
:c::cp::cs::j::js::ts:

10,000 small fixes

2 days ago
crumpuppet

black *.py

2 days ago
BlondeJesus

I was thinking pipenv lock

2 days ago
FriendEducational112
:asm:

Maybe he just reformatted

2 days ago
Objective_Dog_4637
:j:

“Changed all tabs to superior quadruple space indents. You’re welcome.”

2 days ago
cybermage

Hopefully they just removed trailing white space and other lint.

2 days ago
Solax636

When your codebase is millions of lines this could be considered small 

2 days ago
SidScam10 OP
:j:

I get what you mean, but a simple "generate commit message" is much better than " small fixes"

2 days ago
Solax636

I was kidding btw lol sorry forgot /s

2 days ago
SidScam10 OP
:j:

/uj No worries mate, all good

/rj whyVibeCodeWhenYouCanVibeCommit

2 days ago
large_crimson_canine

Only 2558 lines really

2 days ago
Quicker_Fixer
:redditgold:

In Delphi, lines are limited to 255 characters.

2 days ago
MastodonBright1576

Plot twist: the regular commits are much larger

2 days ago
ApprehensiveCrab3472

Regular case. It could be variables renaming or light refactoring of components, services and peripheral features.

2 days ago
rover_G
:c::rust::ts::py::r::spring:

That small fix better be changing a formatter rule

2 days ago
hiromasaki

Or changing import javax.inject.Inject; to import jakarta.inject.Inject; and auto-cleaning imports.

2 days ago
LibrarianOk3701

I accidentally did this with Perforce, I checked out all files and was like damn that is a big changelist until I noticed

2 days ago
Maleficent_Memory831

I saw this some times with a dev that really never understood the new style of git, or how the web based pull request software worked (nasty azure devops). He'd honestly think that he only changed 1 line but then there's but thousands of changes because he'd be merging to a wrong branch and he never noticed, and never looked at the pull request to double check the changes, etc. Ie, trying to do it quick and dirty and ending up with a huge mess.

Measure twice, cut once. This adage applies with software too, it means go slow and be careful.

2 days ago
cheezballs

"tabs to spaces"

2 days ago
phundrak
:rust::py::ts::lsp::spring:

Accidentally committed a new package-lock.json

2 days ago
Histidine

See, this happens to me all the time, but mostly because I keep using CSVs with a few thousand rows of data as my test files. Update a couple of those and yeah, it'll look like this quickly.

2 days ago
Jonnypista

Everyone gangsta till the PR doesn't say how many lines were modified, but instead goes to "infinite files were changed"

1 day ago
JackNotOLantern

I did something like this once. But I just replaced text files used in unit tests, and they had a lot of lines. The code change was just the file name.

1 day ago
noO_Oon

Somebody used the wrong base branch 😅

1 day ago
Due_Pay3896

LGTM

1 day ago
Mountain-Ox

That's just a package.lock file in a medium sized Angular app.

1 day ago
eztab

Plot twist, it's just switching from 3 spaces indentation to 4.

21 hours ago
rymisoda

New prettier config.

20 hours ago