new_contents: import subprocess
  
  
  def commit_if_needed(paths, message):
      cmd = ['git', 'add'] + paths
      subprocess.check_call(cmd)
      cmd = ['git', 'diff', '--quiet', '--exit-code', '--cached', '--'] + paths
      r = subprocess.call(cmd)
      if r != 0:
          cmd = ['git', 'commit', '-m', message, '--'] + paths
          subprocess.check_call(cmd)
          return True
      else:
          return False
  
subject: Add gitutils