modify git api calls to use decorator pattern - simplify calls