That's true, but unfortunately, trashing is the default.
Without any hooks, the next "git commit" on the remote system would add a patch that reverts the uploaded changes. This is very contra-intuitive and could be the source of big mistakes. It's a really nasty trap if you don't watch out!
I like more the approach of Marcurial and Darcs where "not trashing" is the default.
Without any hooks, the next "git commit" on the remote system would add a patch that reverts the uploaded changes. This is very contra-intuitive and could be the source of big mistakes. It's a really nasty trap if you don't watch out!
I like more the approach of Marcurial and Darcs where "not trashing" is the default.