|
|
|
|
|
by vintermann
686 days ago
|
|
> not to mention git has no equivalent to mercurial's "censor" operation Haven't followed that for a while, but it used to be the case that it was Mercurial who was principled/fanatic about never rewriting history, ever, while git happily let you mess up with hard deletes. |
|
What censor is for is the case where something absolutely has to be removed from the repo, for legal or security. It allows you to do it in a clean standard way, even replacing it with, say, a key signed statement, without forcing regeneration of the whole repository or altering the tree in any way.
Just remove the contents while keeping the hash.
https://wiki.mercurial-scm.org/CensorPlan