-
-
Notifications
You must be signed in to change notification settings - Fork 150
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
Idea: Do not delete origin wip branch on done #286
Comments
Yes, that is my suggestion. I've hit this issue multiple times. |
does that make sense? I see the point, that if you get in some trouble you could resume on that branch, but normally you wouldn't continue working on that branch correct? For that edge case in my opinion it is ok to use that workaround. but if you want to work after mob done on the same mob-branch as before this would not work as there would be all the wip commits and not the final commit. |
We could print out how to restore the wip-branch after a mob done in case there are errors. Or simply print out the hash of the latest commit of the wip branch just right before the merge. Then, the user could restore it. Would this help? |
In Mobus Operandi I work regularly with participants who don't use "Reversible" can mean, well, simply not deleting the End of thoughts. |
I just did
Thereby losing the Co-Authored-By lines. No big deal, is it? But I want to restore those lines.
I'm not sure how to restore this information. |
@simonharrer @hollesse do you see any disadvantage in not deleting the origin branch on |
No mob clean would do it if we just delete the branch on origin. If we do not delete the mob branch on origin it won't work. But I think we should add an option for this and we should not change the default behavior. As at least my team and me would not be interested in the mob branches after mob done. If we think about making this default behavior we should implement it that way that mob clean would work to clean these branches. And that we do not have these branches on origin such that these branches will not be reused when doing mob start on the same base branch again. |
Status Quo:
Ideas:
|
I totally agree that I don't see a good cost/benefit ratio for option one. Option 2 sounds like a good idea. Printing the hash is in my honest opinion a good idea. We could also build a wrapper for the restoring of the mob branch. Like |
Give me an option I'd make it default, because it's safer and that matters sometimes, when mobbing with individuals new to this tool or who don't use it frequently to be careful about But this is the point, right? We shouldn't have something destructive to be careful about. What if during a remote session, a developer does How does the mob commit that change? How does the mob restore that change? |
@mightyiam is there still the need for this feature? If so I would like to discuss again. As I see risks in your proposed --retain-wip-branch option. |
I still don't like the risk involved with deletion. Especially not by default. |
The problem in retaining the branch is that it just makes sense to retain it in origin, because as all the team members should then be able to restore but this would lead to new problems when doing a mob start afterwards as there is a mob branch on origin and you would continue to use this branch. What do you think about the supposed idea of @simonharrer to print the hash and have a function mob restore which could bring back the branch? Do you see any disadvantages here? |
Printing would be nicer than status quo. But still... If that person drops offline at that moment... |
@mightyiam made the suggestion for
mob done
to not delete the origin wip-branch, and to leave this for the mob.In this mob we used
mob done
to make an intentional commit to the mainline after which we would resume our mob session.As far as I understand it, the motivation is to not loose anything by accident when mobbers get into git trouble and to avoid reflog fiddling. We solved such a situation with one of the mobbers force pushing their changes to the wip branch, as they still had the correct version on their computer.
The text was updated successfully, but these errors were encountered: