Skip to content

Conversation

@jaymzh
Copy link
Owner

@jaymzh jaymzh commented Dec 28, 2025

The cleanup logic has gotten messed up at some point, so bclean{all},
always checked what the current branch was tracking instead of what
the branch-to-be-cleaned was tracking. Fortunately, this almost
certainly lead to lost of false-negatives instead of false-positives,
but it's still a bummer. This fixes tha.

In addition this adds some new commands for cleaning up remote branches
in addition to local branches: {r,s}eclean{,all}

  • rclean / remoteclean - bclean but for remote branches
  • remotecleanall / rcleanall - bcleanall but for remote branches
  • superclean / sclean - calls both bclean and rclean
  • supercleanall / scleanall - calls both bcleanall and rcleanall

I do not love the naming here. What I'm considering instead:

  • localbranchclean / lbclean - local branch clean. aliased as bclean for
    back-comat
  • localbranchcleanall / lbcleanall - local all branch clean aliased as bclean
    for back-compat
  • remotebranchclean / rbclean - remote branch clean
  • remotebranchcleanall / rbcleanall - remote all branch clean
  • globalbranchclean / gbclean - local+remote branch clean
  • globalbranchcleanall / gbcleanall - local+remote all branch clean

I'm curious what @kinkie and @zealws think....

Closes #199

Signed-off-by: Phil Dibowitz phil@ipom.com

@jaymzh jaymzh changed the title New commands: {r,s}eclean{,all} Lots of breanch-cleanup work Dec 29, 2025
@jaymzh jaymzh changed the title Lots of breanch-cleanup work Lots of branch-cleanup work Dec 29, 2025
@jaymzh
Copy link
Owner Author

jaymzh commented Dec 29, 2025

Also, I'd love @kinkie to test out the new remote-branch commands here.

The cleanup logic has gotten messed up at some point, so bclean{all},
always checked what the _current_ branch was tracking instead of what
the branch-to-be-cleaned was tracking. Fortunately, this almost
certainly lead to lost of false-negatives instead of false-positives,
but it's still a bummer. This fixes tha.

In addition this adds some new commands for cleaning up remote branches
in addition to local branches: {r,s}eclean{,all}

* `rclean` / `remoteclean` - `bclean` but for remote branches
* `remotecleanall` / `rcleanall` - `bcleanall` but for remote branches
* `superclean` / `sclean` - calls both `bclean` and `rclean`
* `supercleanall` / `scleanall` - calls both `bcleanall` and `rcleanall`

I do *not* love the naming here. What I'm considering instead:

* `localbranchclean` / `lbclean` - local branch clean. aliased as
  `bclean` for back-comat
* `localbranchcleanall` / `lbcleanall` - local all branch clean aliased
  as `bclean` for back-compat
* `remotebranchclean` / `rbclean` - remote branch clean
* `remotebranchcleanall` / `rbcleanall` - remote all branch clean
* `globalbranchclean` / `gbclean` - local+remote branch clean
* `globalbranchcleanall` / `gbcleanall` - local+remote all branch clean

I'm curious what @kinkie and @zealws think....

Closes #199

Signed-off-by: Phil Dibowitz <phil@ipom.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[RFE] bcleanall for remote branches

2 participants