modulesync icon indicating copy to clipboard operation
modulesync copied to clipboard

`hard-reset` vs `amend` during `update` command

Open neomilium opened this issue 3 years ago • 0 comments

Even I'm using msync since months now, I never understand why there is an amend option during update and why there is no hard-reset option ATM.

This is probably due to our workflow, so I will describe how we use msync.

We (@opus-codium) use msync to apply massive modifications on multiple repos based on templates. When we need to apply templates, we start from the master branch and apply modifications in a specific one, e.g. modulesync. If something goes wrong during the process, we change our modulesync templates or/and config then re-apply it the same way. Before implementing the --hard-reset option, we executed a script to reset our modulesync branch for the master one. This workflow allow an idempotent behavior, a thing we like a lot (maybe related to puppet love ;-)).

As I'm currently offer some of my time to contribute to msync, I'm asking me about removing the amend option... so I'm looking for a rock-solid workflow that needs amend option.

neomilium avatar Apr 24 '21 08:04 neomilium