• JackbyDev@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 days ago

    I don’t think it’s reasonable to assume most people would think something that says “discard all changes” would run git clean -f instead of something like git reset or git reset --hard.

    The message is better now, regardless. Running this in Codium I get “Are you sure you want to DELETE 2 files? This is IRREVERSIBLE! These files will be FOREVER LOST if you proceed.” Which is way more clear than something like “discard ALL changes” without even giving you any sort of summary about what those changes are. Especially given the logic from the linked comment on the second issue,

    1. Oh what is this? Yes, let’s initialize, git sounds awesome, people use it.
    2. Oh what is this? All my files appear in this list… but they didn’t before. It looks like its touching my files, I don’t like that, how to I get them out of here?
    3. Oh what is this? Discard all changes sounds a lot like what I want to do. 💀

    Given the “change” they just did was to click “Initialize Repository”.