class MGit::Reset
@!scope 类似 git reset
Public Class Methods
description()
click to toggle source
# File lib/m-git/command/reset.rb, line 21 def self.description "将当前HEAD指针还原到指定状态。" end
usage()
click to toggle source
# File lib/m-git/command/reset.rb, line 25 def self.usage "mgit reset [<git-reset-option>] [(--mrepo|--el-mrepo) <repo>...] [--help]" end
Public Instance Methods
enable_repo_selection()
click to toggle source
# File lib/m-git/command/reset.rb, line 17 def enable_repo_selection true end
execute(argv)
click to toggle source
# File lib/m-git/command/reset.rb, line 9 def execute(argv) Workspace.check_branch_consistency Output.puts_start_cmd _, error_repos = Workspace.execute_git_cmd_with_repos(argv.cmd, argv.git_opts, all_repos) Output.puts_succeed_cmd(argv.absolute_cmd) if error_repos.length == 0 end