Implement git support in gensvnrevision tool and related changes in code.