this post was submitted on 20 Nov 2024
876 points (97.6% liked)

Programmer Humor

19630 readers
1217 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] JackbyDev@programming.dev 2 points 1 day ago* (last edited 1 day ago)

I don't think it's reasonable to assume most people would think something that says "discard all changes" would run git clean -f instead of something like git reset or git reset --hard.

The message is better now, regardless. Running this in Codium I get "Are you sure you want to DELETE 2 files? This is IRREVERSIBLE! These files will be FOREVER LOST if you proceed." Which is way more clear than something like "discard ALL changes" without even giving you any sort of summary about what those changes are. Especially given the logic from the linked comment on the second issue,

  1. Oh what is this? Yes, let's initialize, git sounds awesome, people use it.
  2. Oh what is this? All my files appear in this list... but they didn't before. It looks like its touching my files, I don't like that, how to I get them out of here?
  3. Oh what is this? Discard all changes sounds a lot like what I want to do. ๐Ÿ’€

Given the "change" they just did was to click "Initialize Repository".