-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent pushin dura branches to remote #75
Comments
This is good to think about. I know there's another cohort of dura users that want to always push dura branches somewhere and not think about it. Branch management needs more thought. Are there any global config variables we can set to prevent this? |
I think you can tell git which refs you would like to push/not-push with Important note is that negative ref-spec is only recently added., and using Another idea that just came to my mind is for dura to create a new refs instead. So instead of acting under |
This sounds like a good idea. I envision a I've changed my mind about 5 times while writing this so if anybody has anything to add please do, but I think we should go with the refs model. The main reason for this is the Should old branches be retroactively updated? These would need to be updated when the repo is polled, and probably cached in the runtime.db to avoid unnecessary work. Alternatively we could fire-and-forget, and just set the setting when the branch is created. I'm not sure how well that'd work with the proposed changes in #9 though. |
If this functionality is implemented, there probably needs to be an overall/default option regarding the frequency with which to push because I hardly think most users would want pushes every few seconds (if saving frequently). Maybe even something like a distinct |
Some safeguards would be helpful to prevent accidentally poluting your remote with innumerable dura branches. Perhaps a git hook?
The text was updated successfully, but these errors were encountered: