Branch-delete: Ask to delete tracking branch
If I delete a local branch and it has an upstream I want to be asked to delete that aswell when I delete the local branch. Same vice versa
Hello 👋🏾 I would like to help with this
for sure!
Hello! Is this task assigned to someone? If not, I would like to work on it :)
Sorry, sorry. @alessandroasm , I was supposed to work on this but kept putting it off for silly reasons. You should have it. Again very, very sorry @extrawurst
Thank you @jim4067! I'll start working on this asap.
I've just opened a draft PR for this (#935). I would like to hear your suggestions about the way I implemented this feature as it required a bigger than expected change. I would like to highlight a few things here:
- I had to split
process_confirmed_actionin two functions, as clippy was not happy with a more than 100-line function. - I've created a function to find all local branches that track a provided remote one; I'm not sure, but I think it is possible to have multiple local branches tracking a single remote one.
- I would like some suggestions on how to implement the unit tests :)
If you need anything, just let me know. Thanks in advance!