875
submitted 3 months ago* (last edited 3 months ago) by Maven@lemmy.zip to c/programmer_humor@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] Hawke@lemmy.world 111 points 3 months ago

I dunno, “discard changes” is usually not the same as “delete all files”

[-] Starbuck@lemmy.world -3 points 3 months ago

What exactly do you think discard means?

[-] Hawke@lemmy.world 68 points 3 months ago

“Changes” are not the same thing as “files”.

I’d expect that files that are not in version control would not be touched.

[-] MajorHavoc@programming.dev 13 points 2 months ago* (last edited 2 months ago)

Yeah. That's discussed in more detail in the code change that resulted from the issue report.

It's a ballsy move by the VSCode team to not only include git clean but to keep it after numerous issue reports.

As others discussed in that thread, git clean has no business being offered in a graphical menu where a git novice may find it.

That said, I do think the expanded warning mesage they added addresses the issue by calling out that whatever git may think, the user is about to lose some files.

load more comments (7 replies)
load more comments (7 replies)
load more comments (11 replies)
this post was submitted on 20 Nov 2024
875 points (97.5% liked)

Programmer Humor

20033 readers
1273 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