Gasman2014 / KiCad-Diff

Scripts for performing image diffs between pcbnew layout revisions
MIT License
248 stars 42 forks source link

Improve some details #88

Closed leoheck closed 1 year ago

leoheck commented 1 year ago

Hi, @Gasman2014 these are my latest changes to keep my work in sync with this repo. It solves the issues when the git repo is big.

In this way, it improves the way git commit hash is parsed. Instead of a fixed slice of 7 digits, it uses the whole hash since this short hash can vary with the repo size.

Extra: Change the precision of the generated SVG from 2 to 5, since it is allowed on web browsers. Extra: Improve a bit the window dimensions of the GUI.

Note: It would be interesting to test on fossil and svn as usual, since I was not able to do this, at this time, unfortunately. However, I feel it works just fine.