multi-gitter icon indicating copy to clipboard operation
multi-gitter copied to clipboard

Feature request: Add option `--keep` to keep the working directory after the run

Open sigma67 opened this issue 1 year ago • 5 comments

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.

sigma67 avatar Jul 19 '24 06:07 sigma67

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?

lindell avatar Sep 09 '24 19:09 lindell

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

sigma67 avatar Sep 10 '24 06:09 sigma67

Would love to see a keep option. It would make troubleshooting issues easier.

Thanks

jeff-cook avatar Jan 16 '25 21:01 jeff-cook

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.

jeff-cook avatar Jan 22 '25 19:01 jeff-cook

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

jeff-cook avatar Jan 22 '25 19:01 jeff-cook