altsem / gitu

A TUI Git client inspired by Magit
MIT License
1.79k stars 93 forks source link

Feat/stash args #127

Closed altsem closed 5 months ago

altsem commented 5 months ago

@golden-expiriensu tagging you here in case you want to review :)

The goal here was to basically add a cmd.args(args); to relevant stash commands. This will include args enabled in the menu:

Arguments
-a Also save untracked and ignored files (--all)
-u Also save untracked files (--include-untracked)

--include-untracked is enabled per default (and can now be toggled off).

I tried to simplify the code regarding the prompt to more align with updates in other modules!

codecov[bot] commented 5 months ago

Codecov Report

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

Project coverage is 87.51%. Comparing base (69e4eb9) to head (7a3eeb9).

Files Patch % Lines
src/ops/stash.rs 99.06% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #127 +/- ## ========================================== + Coverage 87.40% 87.51% +0.10% ========================================== Files 52 52 Lines 3661 3676 +15 ========================================== + Hits 3200 3217 +17 + Misses 461 459 -2 ```

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

golden-expiriensu commented 5 months ago

Yeah, this looks much more consistent now! Really cool that args are not hardcoded anymore