Skip to content

Conversation

albertodlc
Copy link
Contributor

Goal

  • Allow users to remove local remote-tracking branches without remotes (ie. remote was removed on merge request).

Displayed error
image
image

Changes

  • Included 'DeleteRemoteTracking' and 'HasRemote' util methods to handle this case.
  • We have local and remote-tracking but not a remote branch. We need to remove both or only the tracking based on the checkbox and on the 'hasRemote' condition

- Allow user remove local remote-tracking branches without remotes (ie. remote was removed on merge request).
- Included 'DeleteRemoteTracking' and 'HasRemote' util methods to handle this case.
- We have local and remote-tracking but not a remote branch. We need to remove both or only the tracking based on the checkbox and on the 'hasRemote' condition
@albertodlc albertodlc marked this pull request as ready for review November 12, 2024 19:42
@love-linger love-linger self-assigned this Nov 13, 2024
@love-linger love-linger added the enhancement New feature or request label Nov 13, 2024
@love-linger love-linger merged commit 8935bdd into sourcegit-scm:develop Nov 13, 2024
13 checks passed
love-linger added a commit that referenced this pull request Nov 13, 2024
* remove unnecessary namespace using
* move `Commands.Branch.HasRemote` to `Commands.Remote.HasBranch`
* remove `Commands.Branch.DeleteRemoteTracking` and check branch in `Commands.Branch.DeleteRemote` directly

Signed-off-by: leo <longshuang@msn.cn>
@albertodlc albertodlc deleted the feat-delete-orphan-remote-tracking-branches branch November 14, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants