Closed anthrotype closed 8 years ago
I just removed the commit about ignoring the timestamps (and changed the title of the pull request). I left the other commits (which is minor stuff anyway). I was not fully convinced about it. I'll see if I can find a better solution.
Timestamps sometimes may change even though the content of files does not (e.g. the file is 'touched' but not modified). I don't like when git detect changes in lib.plist only because the timestamps have changed, but the content isn't. Git itself tracks changes using hashes rather than timestamps, and can tell me exactly the list of files which have been modified. So when I keep a UFO under version control, I want to be able to tell the normalizer to not store the timestamps.
In a follow-up PR, I'll add a
--subpaths
option that applies the normalization only to the specified set of files. The latter can be used in conjunction with--no-modtimes
to pass the ufonormalizer the list of files modified as pergit diff --name-only
.In addition, the current PR adds
--float-precision
command line option. The special value of-1
means no rounding (i.e.,repr()
).