seachicken / gh-poi

✨ Safely clean up your local branches
https://dev.to/seachicken/safely-clean-up-your-local-branches-9i3
MIT License
673 stars 19 forks source link

Improve performance for very large repositories #89

Closed seachicken closed 1 year ago

seachicken commented 1 year ago

I was using git branch --all --contains to find the oid associated with a PR, but I found it to be very slow when the repository has many remote branches and a long history. Substituting oid from the remotes branch speeds things up, so I changed it.

codecov[bot] commented 1 year ago

Codecov Report

Merging #89 (d447271) into main (b37b603) will increase coverage by 0.41%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #89      +/-   ##
==========================================
+ Coverage   87.28%   87.69%   +0.41%     
==========================================
  Files           3        3              
  Lines         629      650      +21     
==========================================
+ Hits          549      570      +21     
  Misses         60       60              
  Partials       20       20              
Impacted Files Coverage Δ
poi.go 89.89% <100.00%> (+0.32%) :arrow_up:
querygen.go 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.