Skip to content

Commit

Permalink
Merge pull request #4947 from gitbutlerapp/edit-branch-poping-up
Browse files Browse the repository at this point in the history
The edit branch should not be listed in the side bar
  • Loading branch information
estib-vega authored Sep 18, 2024
2 parents f34d901 + d1c7189 commit ed85637
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/gitbutler-branch-actions/src/branch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions crates/gitbutler-branch-actions/src/remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ed85637

Please sign in to comment.