Feature request: Add option `--keep` to keep the working directory after the run
Thanks for this awesome tool! I have a fairly small, almost trivial request.
The feature request Add a new option that does not delete the working directory after each run.
My use case In my use case I clone a lot of repos to update them from a common template using git merge. There will be unresolved merge requests which I would like to resolve using the working copy of gitter and push from there. My current workflow is to commit the merge conflicts as is and push them. In a second step I would now like to fix the merge commits without checking out the repo separately.
Related: https://github.com/lindell/multi-gitter/discussions/245
Implementation
- [ x] I would like to contribute this feature if it's a suitable addition to multi-gitter
- [ ] I have no intention of adding this feature myself.
It makes sense to have a keep command. Right now, the name of the folder is randomized with just multi-git-changer- as a prefix. This might need to change to make this useful for your use-case?
Not strictly necessary to be honest. Would make it easier to identify the correct folder if the repository name is part of the folder name
Would love to see a keep option. It would make troubleshooting issues easier.
Thanks
There is an option here https://github.com/lindell/multi-gitter/discussions/495#discussioncomment-10202318 that will help. But not the same the same as the keep that is requested.
I'd like to add another use case for --keep.
When this run every repo needs to be cloned and downloaded. By having an option to keep then only changes need to be pulled and not a full clone each time. This could really save a lot of time to run the command on a large list of repos.
Related to https://github.com/lindell/multi-gitter/issues/235