altsem / gitu

A TUI Git client inspired by Magit
MIT License
1.66k stars 86 forks source link

wip: show revert status #128

Closed altsem closed 2 months ago

altsem commented 3 months ago

Leaving this here in case anyone wants to pick it up!

In CLI git, it typically shows this:

On branch main
Your branch is ahead of 'origin/main' by 2 commits.
  (use "git push" to publish your local commits)

You are currently reverting commit 57409cb.
  (fix conflicts and run "git revert --continue")
  (use "git revert --skip" to skip this patch)
  (use "git revert --abort" to cancel the revert operation)

Unmerged paths:
  (use "git restore --staged <file>..." to unstage)
  (use "git add/rm <file>..." as appropriate to mark resolution)
        deleted by them: new-file

no changes added to commit (use "git add" and/or "git commit -a")

No need to show all of this, but an indicator that we are in the "reverting state" would be useful, so that the user can revert --continue, revert --abort etc.

relates to: #110

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 94.44444% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 86.24%. Comparing base (55e9361) to head (f473a8b).

Files Patch % Lines
src/git/mod.rs 87.50% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #128 +/- ## ========================================== + Coverage 86.17% 86.24% +0.06% ========================================== Files 54 54 Lines 4231 4267 +36 ========================================== + Hits 3646 3680 +34 - Misses 585 587 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.