NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Counting Ticks (Score:1)
Vim has a buffer-local variable
b:changedtickwhich counts the number of changes made in that buffer.So instead of the review setting a boolean flag, it could record the current ticks. Then you could making committing only work if the tick count hasn't increased since then.
(Possibly you need to allow a small increase if reviewing or saving or whatever uses up some ticks.)
Reply to This
Re: (Score:2)
Thanks. That solved the problem I discovered with my first attempt. All I had to do was review the code once and hours later, after many changes, I could still commit without a review. The b:changedtick ensures that I can't commit unless I review after every change.