Simplify gitall.py logic