Spyke
Avicennareply
lemmy.world

someone later on -m "removed single quotes, added double quotes"

35
sh.itjust.works

Real talk: I have worked at a company where an exec briefly had the bright idea to rank developers on number of commits made.

You can imagine how that turned out.

He wasn’t an exec for very long.

7
lemy.lol

lmaoo, I can't believe someone actually did that and was serious about it.
I'm already imagining commits piling up with comments like:

  • "add a newline"
  • "move function up"
  • "rename variable users to user_list"
  • "Revert previous commit"
  • "no John, it's user_list and that's it, don't you dare change it again"

He wasn’t an exec for very long.

Good riddance I guess

3
sh.itjust.works

Oh, no, we can do better.

Every single line of every single PR is an individual commit. And never squash-commit.

5

If you really want to nuke it from orbit: do it for every character.

It is absolutely technically feasible to go further than that, but I think that’s the point of diminishing returns in terms of effort.

2
grrgylereply
slrpnk.net

Not Shall330, but double quotes can imply variables in the string in some languages.

4
bitchkatreply
lemmy.world

PHP for one. "$x" will interpret the variable $x. '$x' does not.

5

I have no preference! It was to do with Spring/yaml config and some really strange conflict which required the use of single quotes. I'm still a total noob in the world of software dev, so I wouldn't be able to explain why it worked 🤣

3
Anticorpreply
lemmy.world

You're going to regret not adding the second sentence to the commit message some day.

4

Bold of you to assume there is a cohesive theme to dotfile commits. Usually it's just been long enough that I don't want to lose my latest tweaks

6
The Assmanreply
sh.itjust.works

My commit messages have gotten extremely lazy since I start squashing all my commits down to one. I just describe the PR on the first commit message and write nonsense in all the others.

8
grrgylereply
slrpnk.net

I've been adding the commit shas + messages to the final description, if anyone wants to see my exploratory work.

5
xmunkreply
sh.itjust.works

I know that if you are on the local repository where the commits were originally created they'll remain accessible through recovery methods but AFAIK orphaned commits aren't synced to other machines.

2

That's correct. This is for work, which uses GitHub. The dangling commits remain accessible via their sha through the web ui, so I can link them in the PR description. I don't put them in the actual commit message.

I think these are garbage collected eventually, but no idea on cadence. It's long, anyway.

2
feddit.de

"Changed consent banner text to reflect from legal, even though they are wrong"

16

"circumvented GDPR despite calling out strong ethical objections, because legal & management are forcing me to"

13
lemmy.one

Update coffee list and tex files.

...and yes we have our office coffee list in a git repo.

16
lemmy.ca

Do new hires have to submit a pull request to get in on it? If so, I'm guessing the non-technical staff don't get to drink a lot of coffee.

4
Ving Thorreply
lemmy.one

It's actually just a paper list where people make ticks for coffee. That is then manually synced to an hledger file in git.

3
Serinusreply
lemmy.world

For what? To keep track of who's drinking coffee? Are you charging for coffee?

4

Do you have any plans to open source your coffee list? I want to add this feature where I get an iced coffee in the morning

3

"28496 - there, it's fucking fixed you twat waffle."

Ticketed bug bosses son found. Dude nagged his dad who nagged us until it got fixed. Boss doesn't review code. And for the sake of a half dozen coworkers, I hope he never does.

13
lemmy.world

";"

Previous commit was some stupid easy fix I didn't even bother compiling. Well, I should have, because it was the first time in recent memory I committed some code with a missing semicolon...

Before anyone asks : no, we don't do reviews ¯\_(ツ)_/¯

12
UFOreply
programming.dev

Join me and use ~ to mean "shit changed just check the diff"

2
Hexareireply
programming.dev

For those I just commit with the message "ngl there's a lot of changes in here"

4
ani.social

/* due to customer repeatedly deleting code and backups because they where "unnecessary" we refuse to work with said customer from now on. Whoever is in charge after us, be warned.*/

10

"My laptop died before I could push these"

Not a good commit name I know, but my laptop stopped booting and I just really needed to continue from my desktop.

It's a student project anyway.

10
slazer2aureply
lemmy.world

I do Ansible playbooks so not too had to see when I ballzed it up.

1

Whatever works for you, but I love writing a quality commit message. It's like my reward for doing all that work - wrapping up the changes in a nice little summary.

Sometimes I just scroll through my commits when I'm feeling blue...

6
lemm.ee

hoho

I had just figured out how to fix a bug that broke our in house reminder system. My smug ass put hoho as the commit message for figuring something out that the previous guy couldn't. Of course it came back to bite me in the ass THIS WEEK when the system broke again in a similar fashion, but I couldn't remember what I had done.

8

I know I know. I figured out what I did before I thought of that... which was just now when you said it.

3
sopuli.xyz

"render trans chunks after entities/sel box etc "

6
At a PV node, do not cut off from any TT hit.

The SPRT result of this may be different than before thanks to LMR.

Bench: 5212899

hey, you did ask

6

sq

git commit -m 'sq'
git reset --soft HEAD~
git commit --amend
git push origin +release
5
lemmy.world

I wonder what the last commit message of my career will be.

5

"it's possible i buried a self delete timebomb in one of our repos years ago. enjoy looking for it just incase assholes"

4
nik9000reply
programming.dev

I wonder what my last commit at each job was. I'll bet it was boring. About 10% of my commit messages are genuinely interesting.

4
AA5Breply
lemmy.world

For some definition of interesting …. The quashed commit whose message is a Jira ticket number and title?

1
Victorreply
lemmy.world

This is what I hate about squashing. I love the fact that my crazy journey to a finished feature is there in the log for everyone to see, including myself lol. But squashing makes me feel empty when I write commit messages. Where's the fun... Just a straight line of perfectionism. Maybe someone has a crazy but cool idea that would be worth picking. 🍒

1
AA5Breply
lemmy.world

Maybe. I do more DevOps these days, so tend to have many small changes that can’t even be tested without checking them in and running in CI. I’d have hundreds of “fix unit tests” commits alone

1

We squash. I'm not really interesting in your local journey to land the change. It's sometimes useful during review, but after that it's mostly the state of the main branch I care about. It's what I need to bisect anyway.

I don't like commits that are just references to issues. Copy the issue into the commit message so git blame tells you something useful. Unless it's just closing a simple big. Then the title and issue reference are plenty.

Depends on the project I imagine.

1

I've been thinking about that when talking to my DevOps colleagues, that there's gotta be a better way to test CI before committing. The whole change-commit-test dance would kill me if on a daily basis. So cumbersome.

1
programming.dev

"Merge pull request #8 from [branch name]"

Not the most exciting but hey, someone has to do it.

5

Change port to 8080 because stupid container locks down 80

4

This is pretty funny, but now I want to watermark all of my future work with outdated "Made With ..." Stickers.

"Made With Printshop Deluxe!" "Made With Microsoft Works!" "Sent From my Sidekick!"

4

chore: replaced println() with proper logging util

I forgot to replace them water finishing debugging.

4

Added zip code to the reseller portal when batch-creating transactions in

I try to start off descriptive, in case I want to diff a few changes back. After that, sometimes I write notes or general reflections on life in there... Until yesterday I thought no one was reading them

4

Refactoring for the EU region.

Reusing Terraform projects for the win.

4

m

usually the commits at the end of the day when I haven't finished a task yet. It will be squashed and disappear eventually.

4

My commits are a little too specific to post here, lmao. I likely put too much info into them, I’m still trying to get a good balance.

3

I think long messages are a good habit. Start with something readable in the history, past that who cares? Most people rarely read past the preview, and if they do they want details

I think it's great because it makes you reflect on what the goal was and what you did. I sometimes stop to make a quick change as I'm writing, or just collect my thoughts before mentally dismissing the task

2

"Add ability to load sources which are not a nginx file listing."

I try to be descriptive while keeping it short.

3

CPEUI-20102: It's working but still clean up to do.

I'll never get time to do that "clean up"

2

I wrote a brief manifesto on my hatred of Python because some refactoring ended up having a comma at the end of a line, which screwed me over for about an hour until I happened to noticed it.

1

somebody renamed the interface but didn’t rename the monitoring interface 2

1

Oh i don't need to add bugs...

Come to think of it, i think i'll try emojis on my next commit message... just to test...

1