Mike: extracted GIT routines into its own module