Class: Flux::CLI::Branch::Checks
- Inherits:
-
Thor
- Object
- Thor
- Flux::CLI::Branch::Checks
- Defined in:
- lib/flux/cli/git.rb
Constant Summary collapse
Instance Method Summary collapse
Instance Method Details
#rebased(branch = B.current) ⇒ Object
54 55 56 57 58 59 60 61 62 |
# File 'lib/flux/cli/git.rb', line 54 def rebased(branch = B.current) branch = G::Branch(branch) parent = G::Branch([:parent]) unless branch.includes?(parent) raise Error, "`#{branch.fqdn}' is not rebased onto `#{parent.fqdn}'." end end |