lib/cocoapods-core/source.rb
# Updates the local clone of the source repo.
#
# @param  [Bool] show_output
#
# @return  [Array<String>] changed_spec_paths
#          Returns the list of changed spec paths.
#
Updates the local clone of the source repo.
Updates the local clone of the source repo .
def update(show_output)
      return [] if unchanged_github_repo?
      prev_commit_hash = git_commit_hash
      update_git_repo(show_output)
      @versions_by_name.clear
      refresh_metadata
      if version = metadata.last_compatible_version(Version.new(CORE_VERSION))
        tag = "v#{version}"
        CoreUI.warn "Using the `#{tag}` tag of the `#{name}` source because " \
          "it is the last version compatible with CocoaPods #{CORE_VERSION}."
        repo_git(['checkout', tag])
      end
      diff_until_commit_hash(prev_commit_hash)
    end
def update ( show_output ) return [ ] if unchanged_github_repo? prev_commit_hash = git_commit_hash update_git_repo ( show_output ) @versions_by_name . clear refresh_metadata if version = metadata . last_compatible_version ( Version . new ( CORE_VERSION ) ) tag = "v#{version}" CoreUI . warn "Using the `#{tag}` tag of the `#{name}` source because " "it is the last version compatible with CocoaPods #{CORE_VERSION}." repo_git ( [ 'checkout' , tag ] ) end diff_until_commit_hash ( prev_commit_hash ) end
Updates the local clone of the source repo.
Updates the local clone of the source repo .
changed_spec_paths Returns the list of changed spec paths.
changed_spec_paths Returns the list of changed spec paths .
Array<String>
show_output
<not_specific>
<not_specific>
None