add saved macro to gui-diff last failure
add three git helper functions