866
submitted 4 days ago* (last edited 4 days 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 109 points 4 days ago

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

[-] Starbuck@lemmy.world -2 points 4 days ago

What exactly do you think discard means?

[-] Hawke@lemmy.world 67 points 4 days 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 4 days ago* (last edited 4 days 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
866 points (97.5% liked)

Programmer Humor

19623 readers
1 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