this post was submitted on 20 Nov 2024
865 points (97.5% liked)

Programmer Humor

19623 readers
2 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
865
submitted 5 days ago* (last edited 5 days ago) by Maven to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 1 points 4 days ago* (last edited 4 days 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".