Add support for git sparse checkout.