Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improve modified files#263

Merged
ishepard merged 8 commits into
masterfrom
improve_modified_files
Apr 21, 2023
Merged

Improve modified files#263
ishepard merged 8 commits into
masterfrom
improve_modified_files

Conversation

@ishepard
Copy link
Copy Markdown
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
Copy Markdown

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