Adding code which will optimize a git repository