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

Programmer Humor

19697 readers
97 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
906
submitted 3 days ago* (last edited 3 days ago) by [email protected] to c/programmer_humor
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 59 points 3 days ago* (last edited 3 days ago) (23 children)

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

The warning

[–] [email protected] 6 points 3 days ago (18 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.

[–] [email protected] 60 points 3 days ago (16 children)

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

[–] Pyro 5 points 3 days ago (1 children)

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

[–] [email protected] 10 points 3 days 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 (14 replies)
load more comments (15 replies)
load more comments (19 replies)