Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept "git diff" as input #32

Merged
merged 1 commit into from
Jul 9, 2022
Merged

Accept "git diff" as input #32

merged 1 commit into from
Jul 9, 2022

Conversation

orlangure
Copy link
Owner

In addition to supporting file list input, this commit adds support for
raw "git diff" output. In this case, only the changed files will appear,
and only the lines marked as "added" in the diff will be shown. For
every such line, its coverage status will be reported of course
(red/green/gray).

@orlangure orlangure self-assigned this Jun 25, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jun 25, 2022

Codecov Report

Merging #32 (bb88c81) into master (07456cc) will increase coverage by 0.14%.
The diff coverage is 89.39%.

@@            Coverage Diff             @@
##           master      #32      +/-   ##
==========================================
+ Coverage   85.88%   86.02%   +0.14%     
==========================================
  Files           9        9              
  Lines         659      773     +114     
==========================================
+ Hits          566      665      +99     
- Misses         79       89      +10     
- Partials       14       19       +5     
Impacted Files Coverage Δ
internal/model/list.go 80.00% <ø> (ø)
internal/program/program.go 58.06% <21.42%> (-9.44%) ⬇️
internal/model/model.go 91.72% <88.88%> (+0.08%) ⬆️
internal/codeview/code.go 95.61% <97.89%> (+1.16%) ⬆️
internal/model/options.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 07456cc...bb88c81. Read the comment docs.

@orlangure orlangure linked an issue Jun 25, 2022 that may be closed by this pull request
This commit allows to pipe `git diff` command output into gocovsh to
display only changed portions of changed files. It might be helpful when
actively working on a feature to determine its coverage quickly, while
disregarding the rest of the code.
@orlangure orlangure marked this pull request as ready for review July 8, 2022 20:33
@orlangure orlangure merged commit 9617e28 into master Jul 9, 2022
@orlangure orlangure deleted the diff-overlay branch July 9, 2022 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Git diff overlay
2 participants