-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add option to clean submodules #11054
Comments
The option to update or reset submodules is available in the context menu
in the Commit form. If you select all submodules the requested operation
will be executed for all selected.
You can also write a custom script to do the same. Check under Settings >
Scripts.
|
This isn't about reset but clean. It's just one more tick box on the Commands->Clean working directory (or two if you want to control whether it is recursive or not) |
That's the context that was missing from your origin post. Please update the post providing the full context of what you think is missing from the app. Screenshots can be helpful too. |
@RussKie Done. Thanks |
Thank you. Setting up for grabs. Pull requests are welcome. |
I have been having a look at this, and have a question. Would the cleaning of submodules take place after the initial clean command, when the Cleanup button is pressed? |
Yes and it would be a simple What about exclusions like all but x submodule? This is where a script in the repo folder that does the work for master repo and the subs with but I don't want x repo because... is handled. |
I think for the purpose of this dialog executing Personally, I've never used this dialog, typing |
I've had a go at implementing this - never worked on the repo before, so any feedback would be awesome! 🙂 |
I'll have a look but it'll probably be next week.
|
* Sign contributors.txt * #11054 Add option to clean submodules * Update translations * Add Clean Submodules behaviour to Preview * Remove unused import
Feature description
It would be very handy if you could clean (not reset) all submodules (recursively) from git extensions. It's just one more tick box on the Commands->Clean working directory (or two if you want to control whether it is recursive or not). I think the relevant script is
git submodule foreach --recursive git clean -xfd
Environment
All
The text was updated successfully, but these errors were encountered: