this post was submitted on 20 Nov 2024
848 points (97.4% liked)

Programmer Humor

19623 readers
4 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
848
submitted 3 days ago* (last edited 3 days ago) by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 41 points 3 days ago (2 children)

Also, why not send them to the recycle bin? I never really thought about it before, but that does seem a reasonable UX improvement for this case

[–] [email protected] 3 points 3 days ago

I wonder if there's already a git extension to automatically stash the working tree on every clean/reset/checkout operation...

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

Because “the underlying Git nukes them right away, so why shouldn’t we perma-delete the files, too?”

Anything else’d be effort…

[–] [email protected] 8 points 3 days ago (1 children)

Honestly it probably just runs the underlying git command

[–] [email protected] 1 points 2 days ago

Sorta, but sorta no.

It was actually addressed in https://github.com/microsoft/vscode/issues/32459 – the GUI implied a different git command than what actually got executed!