• Omega_Jimes@lemmy.ca
    link
    fedilink
    arrow-up
    34
    arrow-down
    1
    ·
    5 hours ago

    I’m not great at English, but “discard all changes” shouldn’t ever mean “Delete”.

    • Michal@programming.dev
      link
      fedilink
      arrow-up
      20
      arrow-down
      2
      ·
      5 hours ago

      In the context of version control it does. Discarding a change that creates a file means deleting the file.

      • Omega_Jimes@lemmy.ca
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        3 hours ago

        Ok fair enough, but I’m under the impression these files existed before the source control was implemented.

        I guess it’s all up to how the program handles existing files.

        • FiskFisk33@startrek.website
          link
          fedilink
          arrow-up
          2
          ·
          2 hours ago

          I guess the newly created git repository was empty, and all the files that was present in the folder represented “changes”