allenporter / flux-local

flux-local is a set of tools and libraries for managing a local flux gitops repository focused on validation steps to help improve quality of commits, PRs, and general local testing.
https://allenporter.github.io/flux-local/
Apache License 2.0
156 stars 22 forks source link

feat: allow diff to take a branch name as origin using worktree #655

Closed Alexsaphir closed 6 months ago

Alexsaphir commented 7 months ago

Following the discussion on discord, I've extended the behaviour of create_worktree to use a branch and not be detached. This allows us to compare two branch, the current and main for example easily.

codecov-commenter commented 7 months ago

Codecov Report

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

Project coverage is 93.50%. Comparing base (171e3bc) to head (893fc9a). Report is 2 commits behind head on main.

Files Patch % Lines
flux_local/git_repo.py 75.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #655 +/- ## ========================================== - Coverage 93.54% 93.50% -0.04% ========================================== Files 20 20 Lines 2122 2125 +3 ========================================== + Hits 1985 1987 +2 - Misses 137 138 +1 ```

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