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
It will help to enhance the script to provide a way to delete extra brnaches on remote which are not ahead of any other specidfied branch or main. It will help reduce useless old brnahes in repo
The text was updated successfully, but these errors were encountered:
something like this has been suggested before - this is essentially a duplicate of #12 - it is implemented on the development branch now, as the -c/--cleanup option - please try it, review the code, and give your opinions
if that is not exactly what you were proposing, i suspect that is because your description is local-centric - local replicas are never expected to be authoritative - the canonical branches are normally on one (or more) servers, not on anyone's local system - so to be most correct, it may be prudent to also add a per-repo data array to specify exactly which host+branch pair is the canonical/stable one, against which to decide such "branches which are not ahead" - the canonical host+branch can not be inferred; because that is usually not any local branch, it is not necessarily the tracked remote branch of any local branch, and different projects use different names for it
its not obvious that a new per-repo data array is the right thing to do though; because it is not necessarily a single canonical branch which would always be used as the compare base - one can easily imagine the same maintenance task, whenever multiple people are contributing to the same feature branch - some projects keep no single canonical branch, but prefer a collection of stable per-release branches
without a new array of canonical per-repo branch designations, one would always need to specify the compare branch on the command line; so the -c/--cleanup option was initially implemented for that general usage
It will help to enhance the script to provide a way to delete extra brnaches on remote which are not ahead of any other specidfied branch or main. It will help reduce useless old brnahes in repo
The text was updated successfully, but these errors were encountered: