This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Trailing Whitespace


> > IMHO, better approach is to install on-commit hook blocking commits
> > with trailing whitespace (and tab characters) and leave old code as is.
> 
> Unfortunately, commit hooks have to be set up in every local copy of the
> repository, which I can't see happening.

The best way to do this is to do it on the official repository
(on sourceware) - via the "update" hook.

We can also provide client-side hooks for the "commit", but, as you say,
it would rely on everyone of us activating them.

-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]