merge-base¶
vb merge-base [OPTIONS] PRIMARY SECONDARY ...
Description¶
Find a common ancestor given two or more check-in versions to hypothetically merge.
Options¶
- --ignore-merges¶
Ignore merges for discovering name pivots
Examples¶
Find the common ancestor of two branches
$ vb ci -m "base"
Committed version: 0791a42e1d8ed526b134150240865b1356aa02c6ae1fa5cbffce28836c837e72
$ vb ci -m "work on feature/a" --branch feature/a
Committed version: f7cd58e1cdf38339255bec04e6d3b7a37651821b425c688c624297ca26b6b2f2
$ vb ci -m "work on feature/b" --branch feature/b
Committed version: b3a8b4d1f6f5fde19549ce6e2613ec2554535fa08a77f06a5750f191f2ceb8fb
$ vb merge-base feature/a feature/b
pivot=f7cd58e1cdf38339255bec04e6d3b7a37651821b425c688c624297ca26b6b2f2