Hacker News new | ask | show | jobs
by EugeneOZ 3976 days ago
I don't understand why they don't filter it on upload stage ("push"). "git push" > "sorry, can't push because of words: [list of words here]". Is it more difficult than later disable whole repo because of one stupid joke?
1 comments

Because you may need to put those words in a repo in a non-offensive context. For example, a list of "bad" words to look for.
I'm against censorship at all, but when humans are involved in process, it becomes much worse.
You could work with hashed variants in that case; there might be performance benefits there, too.