The edit branch should not be listed in the side bar

The `gitbutler/edit` branch should not be listed in the side bar of the application
This commit is contained in:
estib 2024-09-18 14:28:25 +02:00
parent f34d901c87
commit d1c71898cc
2 changed files with 2 additions and 0 deletions

View File

@ -357,6 +357,7 @@ impl GroupBranch<'_> {
fn should_list_git_branch(identity: &BranchIdentity) -> bool {
// Exclude gitbutler technical branches (not useful for the user)
const TECHNICAL_IDENTITIES: &[&[u8]] = &[
b"gitbutler/edit",
b"gitbutler/workspace",
b"gitbutler/integration", // Remove me after transition.
b"gitbutler/target",

View File

@ -89,6 +89,7 @@ pub fn list_local_branches(ctx: &CommandContext) -> Result<Vec<RemoteBranch>> {
if !branch_is_trunk
&& branch.name.branch() != Some("gitbutler/integration") // Remove after rename migration complete.
&& branch.name.branch() != Some("gitbutler/workspace")
&& branch.name.branch() != Some("gitbutler/edit")
&& branch.name.branch() != Some("gitbutler/target")
{
remote_branches.push(branch);