git: restore basic functionality (issue6545)
It looks like a big refactor happened on dirstate, and the git extension was just ignored.
Differential Revision: https://phab.mercurial-scm.org/D11234