aleclarson / check-git-patch

Find errors and conflicts in a git patch
2 stars 0 forks source link

In watch mode, prompt the user when a patch is ready to apply #2

Open aleclarson opened 5 years ago

aleclarson commented 5 years ago

Using enquirer

Something like:

Patch named "example.patch" is ready. Want to apply it?  [Y/n] 
aleclarson commented 5 years ago

Actually, it should be a multi-choice prompt:

Patch named "example.patch" can be applied.
    - Apply and delete it
    * Apply it only
    - Do nothing

It defaults to "Apply it only" so every action is, at most, only 2 button clicks away.

Note: The "Apply and delete it" action only deletes the patch if it's applied without issue.