this post was submitted on 20 Nov 2024
744 points (97.3% liked)

Programmer Humor

19623 readers
2351 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
744
submitted 20 hours ago* (last edited 20 hours ago) by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 62 points 12 hours ago (7 children)

I'm not great at English, but "discard all changes" shouldn't ever mean "Delete".

[–] [email protected] 28 points 11 hours ago (3 children)

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

[–] [email protected] 2 points 10 hours ago (1 children)

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.

[–] [email protected] 3 points 9 hours ago

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

load more comments (1 replies)
load more comments (4 replies)