v1.0.0
First public release of commitmsgfmt
, a filter for formatting commit messages a little better than fmt(1)
and Vim.
This is the "make it work" version, and indeed, commitmsgfmt
is dog slow because of glaring big-O inefficiencies. Although embarrassing, this won't matter in the typical case; commitmsgfmt
can format its own history up until v1.0.0 in 20 milliseconds, and upwards of 90,000 words per second:
~/src/commitmsgfmt (master) $ git log --format=%B | wc
144 753 5401
~/src/commitmsgfmt (master) $ time commitmsgfmt < <(git log --format=%B) >/dev/null
real 0m0,017s
user 0m0,019s
sys 0m0,000s
~/src/commitmsgfmt (master) $ cd ../git/Documentation
~/src/git/Documentation ((v2.16.2)) $ wc gitcore-tutorial.txt
1661 9898 62275 gitcore-tutorial.txt
~/src/git/Documentation ((v2.16.2)) $ time commitmsgfmt < gitcore-tutorial.txt >/dev/null
real 0m0,101s
user 0m0,101s
sys 0m0,000s