Module: Command::Sequencing
- Included in:
- CherryPick, Revert
- Defined in:
- lib/command/shared/sequencing.rb
Constant Summary collapse
- CONFLICT_NOTES =
<<~MSG after resolving the conflicts, mark the corrected paths with 'jit add <paths>' or 'jit rm <paths>' and commit the result with 'jit commit' MSG
Instance Method Summary collapse
Instance Method Details
#define_options ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/command/shared/sequencing.rb', line 13 def @options[:mode] = :run @parser.on("--continue") { @options[:mode] = :continue } @parser.on("--abort") { @options[:mode] = :abort } @parser.on("--quit" ) { @options[:mode] = :quit } @parser.on "-m <parent>", "--mainline=<parent>", Integer do |parent| @options[:mainline] = parent end end |
#run ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/command/shared/sequencing.rb', line 25 def run case @options[:mode] when :continue then handle_continue when :abort then handle_abort when :quit then handle_quit end sequencer.start(@options) store_commit_sequence resume_sequencer end |