On Fri, Dec 03, 2010 at 03:04:55PM +0100, Jan Holesovsky <kendy@suse.cz> wrote:
That's why I highlighted that this would be done only with _new_ files, ie. the files that have have been git add'ed, and did not exist in the repository before. And we can further limit that only to .hxx/.h.
Ah, that makes a difference.
As to the crossing the line - the first time it won't let you commit, and you'll be angry, the second time it won't let you commit, and you'll just fix that, and the third time you'll comment just naturally, and won't even hit the check :-) This worked with the warnings about how to structure the git commit logs [do you ever hit the hook that the 2nd line in the commit log should be empty?], so I don't see why it shouldn't work in this case ;-)
I just added support for checking given files only (relative to the current directory) instead of the old "check all files in the current directory and subdirectories" behaviour. Should I write the git hook part of it, or can you do it? The only nontrivial part is how to to reach the scratch folder from the bootstrap repo. :)
Attachment:
pgp6myJzxD_yU.pgp
Description: PGP signature