Skip to content

Introduce a new state of branch in status/traverse: removed from remote #1242

Description

@PawelLipski

This is state is already kind-of supported via git machete slide-out --removed-from-remote. In this command, a branch is considered removed from remote when both conditions are true:

  1. git config key branch.BRANCH.merge is set
  2. remote branch pointed by this git config key doesn't exist in refs/remotes.

More precisely, slide-out --removed-from-remote only slides out a removed-from-remote branch when it also doesn't have any downstream branches.

Currently, such branches are just considered untracked in every context other than slide-out --removed-from-remote.

This new state would need to be handled in:

  • status
  • traverse (suggest sliding out, not pushing; also, don't suggest creating a PR/MR)
  • git{hub,lab} create-{pr,mr} — TBD what to do with such branches.
  • IntelliJ plugin.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

statusRelates to how status is renderedtraverseRelates to how tree traversal is performedusabilityRelates to user experience, clarity, learning curve, reducing confusion etc.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions