nemisj / git-removed-branches

Git: List or remove local tracked branches, which are deleted from the remote.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

find_local_branches not listing local branches when branch has no config on remote

augustynski-lukasz opened this issue · comments

When branch has no config on remote it is not listed as local branch and therefore not deleted.

This is by design. See https://github.com/nemisj/git-removed-branches/blob/master/git-removed-branches.py#L27

The goal is to remove tracked branches that were deleted from the remote. Not delete local branches that don't exist on the remote.

I think this is a help text or documentation issue.

For example, "Remove local branches, which are no longer available in the remote" could be changed to "List or remove tracked branches that were deleted from the remote.".

Changed first line. thanks @lucasrangit