I was just about to remove a feature from a site admin that I don't believe anyone is using. However I wanted to leave a message on the off-chance that someone is still using it. I was going to replace the HTML template with something to the effect of:
<p>This feature has been disabled. If you need it back please ask engineering to revert #1234567890abcdef<p>
Obviously I realize this can easily be done in two commits. However I thought it was an interesting question from a cryptography angle.
Assuming you can only modify the hash itself, what are the chances that a hash actually exists that satisfies this property? As you shorten the hash (since git allows unique prefixes) presumably the chances of such a hash increase. What would the probability be for a 6-char prefix and how hard would it be to find?