nrwl / precise-commits

:sparkles: Painlessly apply Prettier by only formatting lines you have modified anyway!
MIT License
471 stars 20 forks source link

fix: Use git directory parent for absolute file paths #4

Closed erik-inkapool closed 6 years ago

erik-inkapool commented 6 years ago

If you have a package.json file in a non-git-root directory you will get duplicate folders in the path (since diffs are based at the git-root directory). This commit uses git root directory as path base instead of working directory to fix that.

fix #3