vaclavsvejcar / headroom

©️ Manager for license headers in source code files.
https://doc.norcane.com/headroom/latest/
BSD 3-Clause "New" or "Revised" License
48 stars 3 forks source link

Only touch files if they actually changed #44

Closed mheinzel closed 4 years ago

mheinzel commented 4 years ago

Instead of always writing the result of dropping/adding/replacing the header, it should only be written if it's different from the previous file content. This avoids changing the timestamp, which would for example trigger unnecessary rebuilds when using Makefiles.

vaclavsvejcar commented 4 years ago

Valid point, guess this can be considered as bug, will fix this one in next bugfix release.

vaclavsvejcar commented 4 years ago

Fixed, will be released as part of the upcoming version 0.2.1.0.