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

Improve modified files #263

Merged
merged 8 commits into from
Apr 21, 2023
Merged

Improve modified files #263

merged 8 commits into from
Apr 21, 2023

Conversation

ishepard
Copy link
Owner

I noticed that we ask for diffs, source code before and after the change, in a block. Which means, every time we ask for a diff, we also get source code before and after. Which is a waste of time and resources.
So I brought the computation of source code and diff to the modified file, and it's computed only when requested.

@codecov
Copy link

codecov bot commented Apr 21, 2023

Codecov Report

Merging #263 (778c99f) into master (cbd8355) will increase coverage by 0.00%.
The diff coverage is 86.66%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #263   +/-   ##
=======================================
  Coverage   97.32%   97.32%           
=======================================
  Files          15       15           
  Lines        1045     1048    +3     
=======================================
+ Hits         1017     1020    +3     
  Misses         28       28           
Impacted Files Coverage Δ
pydriller/git.py 96.89% <ø> (ø)
pydriller/domain/commit.py 97.08% <86.66%> (+0.02%) ⬆️

@ishepard ishepard merged commit 241edcb into master Apr 21, 2023
@ishepard ishepard deleted the improve_modified_files branch April 21, 2023 13:41
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.

1 participant