featureBranchOrigin property
Commit where the featureBranch branched off the baseBranch or the first commit in history in case of an unrelated history
Implementation
Future<Commit?> get featureBranchOrigin async {
final firstBaseCommits = await allFirstBaseBranchCommits;
final allheadCommits = await commits;
try {
return allheadCommits.firstWhere((c) => firstBaseCommits.contains(c));
} catch (ex) {
return null;
}
}