git: wrap the idle call into its own method