added/changed some git utility functions