class MGit::Fetch
@!scope [command] fetch follow git fetch eg: mgit fetch
Public Class Methods
description()
click to toggle source
# File lib/m-git/command/fetch.rb, line 23 def self.description "与远程仓库同步分支引用和数据对象。" end
usage()
click to toggle source
# File lib/m-git/command/fetch.rb, line 27 def self.usage "mgit fetch [<git-fetch-option>] [(--mrepo|--el-mrepo) <repo>...] [--help]" end
Public Instance Methods
enable_repo_selection()
click to toggle source
# File lib/m-git/command/fetch.rb, line 19 def enable_repo_selection true end
execute(argv)
click to toggle source
# File lib/m-git/command/fetch.rb, line 10 def execute(argv) Output.puts_start_cmd _, error_repos = Workspace.execute_git_cmd_with_repos(argv.cmd, argv.git_opts, all_repos) if error_repos.length == 0 Output.puts_succeed_cmd(argv.absolute_cmd) Timer.show_time_consuming_repos end end