added some methods to git.py