goldstar611 / gitless

A maintained fork of the simple git interface
https://goldstar611.github.io/gitless/
MIT License
26 stars 2 forks source link

Adds gl revert, a wrapper for git revert #36

Closed sirlucjan closed 2 years ago

sirlucjan commented 2 years ago

Very simply wrapper to git revert. I have done a simple test and it looks like everything is working.

lucjan at archlinux ~/Pobrane/gitless 14:49:07 1a55d6c3 patch-6    
❯ gl revert HEAD            
[patch-6 847f8e6] Revert "Revert "Revert "Adds gl revert, a wrapper for git revert"""
 2 files changed, 2 insertions(+), 30 deletions(-)
 delete mode 100644 gitless/cli/gl_revert.py
✔ Reverting commit sucessful
lucjan at archlinux ~/Pobrane/gitless 14:49:16 847f8e6c patch-6    
❯ gl revert HEAD~1000...HEAD
fatal: bad revision 'HEAD~1000...HEAD'
✘ Reverting commit failed

Signed-off-by: Piotr Gorski lucjan.lucjanov@gmail.com

goldstar611 commented 2 years ago

Hi Piotr,

Sorry for the delayed response. This wrapper looks good to me. I think we also have an opportunity to provide a better "undo" feature that automatically cleans the index. I'll track this idea in another issue.

Thanks for your contributions! It's greatly appreciated!

sirlucjan commented 2 years ago

I'd be happy to test it out if need be.

goldstar611 commented 2 years ago

I'd be happy to test it out if need be.

I will ping you when I get the chance to write some gitless code :) Thanks for the offer!

sirlucjan commented 2 years ago

@goldstar611 Maybe the recent revisions are a good opportunity for a new release? :)

goldstar611 commented 2 years ago

Yes, let me add a new tag :)

goldstar611 commented 2 years ago

Tag 0.9.17 created!

sirlucjan commented 2 years ago

You probably forgot to complete the version in the init file, I have sent the corresponding pull request (#38) :)