code: def add_progress(kwargs, git, progress):
      
      if progress is not None:
          v = git.version_info[:2]
          if v >= (1, 7):
              kwargs['progress'] = True
          # END handle --progress
      # END handle progress
      return kwargs
docs: Add the --progress flag to the given kwargs dict if supported by the
      git command. If the actual progress in the given progress instance is not
      given, we do not request any progress
      :return: possibly altered kwargs