You are viewing a single thread.
View all comments View context
12 points

Warns you that changes will be discarded…not quite the same words

permalink
report
parent
reply
-5 points

If you use git and understand that VSC’s source control stuff is just a thin wrapper around git, you should understand what “discard all changes” means

permalink
report
parent
reply
1 point

Broken stair apologism.

permalink
report
parent
reply
6 points
*

“discard” is not a git operation. Reset and restore are, but those weren’t the words used.

permalink
report
parent
reply
0 points

I’m not claiming that “discard” is a git action. I’m claiming a git user should understand what’s meant by the phrase “discard changes”. Run git status in a repo that has changes in the working directory. In the resulting output, there’s a message:

Changes not staged for commit:
    (use "git add <file>..." to update what will be committed) 
    (use "git restore <file>..." to discard changes in working directory)
        ...

The phrase “discard changes” is used consistently in git’s output.

permalink
report
parent
reply
-4 points
*

I just tried right now to get the exact message.

Are you sure you want to DELETE foo?
This is IRREVERSIBLE!
This file will be FOREVER LOST if you proceed.

The confirmation button even says Delete File

User error.

permalink
report
parent
reply
13 points

This issue was from 2017

permalink
report
parent
reply
9 points

Ah looking at issue 32459 it was addressed shortly after.

You’re right that it did originally say “Discard”.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 2K

    Monthly active users

  • 861

    Posts

  • 14K

    Comments