You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're iterating through a list of branches by name, it would be handy to be able to delete them directly:
# Example 1repo.get_branch('feature-branch-1').delete()
# Example 2forbranchinrepo.get_branches():
ifsome_condition:
branch.delete()
I think the only way currently available to delete branches is to call repo.get_git_ref() to get a reference to the branch, and then call .delete() on the returned object. What I'm proposing would complement this method.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If you're iterating through a list of branches by name, it would be handy to be able to delete them directly:
# Example 1repo.get_branch('feature-branch-1').delete()
# Example 2forbranchinrepo.get_branches():
ifsome_condition:
branch.delete()
I think the only way currently available to delete branches is to call repo.get_git_ref() to get a reference to the branch, and then call .delete() on the returned object. What I'm proposing would complement this method.
If you're iterating through a list of branches by name, it would be handy to be able to delete them directly:
I think the only way currently available to delete branches is to call
repo.get_git_ref()
to get a reference to the branch, and then call.delete()
on the returned object. What I'm proposing would complement this method.The text was updated successfully, but these errors were encountered: