Class: MGit::Fetch
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- MGit::Fetch
- Defined in:
- lib/m-git/command/fetch.rb
Overview
follow git fetch eg: mgit fetch
Constant Summary
Constants inherited from BaseCommand
BaseCommand::HIGH_PRIORITY_OPT_LIST, BaseCommand::SELECTABLE_OPT_LIST
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from BaseCommand
#all_repos, cmd, #exec_light_repos, #generate_config_repo, inherited, #initialize, #locked_repos, #run
Constructor Details
This class inherits a constructor from MGit::BaseCommand
Class Method Details
.description ⇒ Object
23 24 25 |
# File 'lib/m-git/command/fetch.rb', line 23 def self.description "与远程仓库同步分支引用和数据对象。" end |
.usage ⇒ Object
27 28 29 |
# File 'lib/m-git/command/fetch.rb', line 27 def self.usage "mgit fetch [<git-fetch-option>] [(--mrepo|--el-mrepo) <repo>...] [--help]" end |
Instance Method Details
#enable_repo_selection ⇒ Object
19 20 21 |
# File 'lib/m-git/command/fetch.rb', line 19 def enable_repo_selection true end |
#execute(argv) ⇒ Object
10 11 12 13 14 15 16 17 |
# 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 |