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

Programmer Humor

25511 readers
2171 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 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Maven@lemmy.zip 57 points 8 months ago* (last edited 8 months ago) (24 children)

Here is the exact warning that a user had to click through in order to get to where they got:

The warning

[–] Beacon@fedia.io 6 points 8 months ago (19 children)

Hm ok yeah, that seems quite scary sounding so that i would strongly hesitate before clicking on "discard ALL changes". Still, I wonder if a second confirmation dialog with more information is warranted for a command that's so destructive.

[–] conciselyverbose@sh.itjust.works 57 points 8 months ago (17 children)

I wouldn't assume "discard changes" means "delete files that existed before the editor did".

[–] Pyro@programming.dev 5 points 8 months ago (1 children)

It's not that. It means discard all changes made after the last change committed to this local repository.

[–] fahfahfahfah@lemmy.billiam.net 9 points 8 months ago

In this case it seems like it also performed a git clean and deleted his untracked files too. Someone actually opened a an issue to try and prevent the behaviour in the future

load more comments (15 replies)
load more comments (16 replies)
load more comments (20 replies)