Skip to content

Commit 7226ad5

Browse files
authored
Merge pull request #10480 from gitbutlerapp/kv-branch-57
feat(status): print common merge base short SHA in status output
2 parents 913a396 + 0abf1b4 commit 7226ad5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/but/src/status/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ pub(crate) fn worktree(repo_path: &Path, _json: bool, show_files: bool) -> anyho
6464
ctx,
6565
)?;
6666
}
67+
let common_merge_base = gitbutler_stack::VirtualBranchesHandle::new(ctx.project().gb_dir())
68+
.get_default_target()?
69+
.sha
70+
.to_string()[..7]
71+
.to_string();
72+
println!("◉ {common_merge_base} (common base)");
6773
Ok(())
6874
}
6975

0 commit comments

Comments
 (0)