From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10747 invoked by alias); 10 Jan 2014 03:44:57 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 10734 invoked by uid 89); 10 Jan 2014 03:44:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 10 Jan 2014 03:44:55 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W1T1f-0000TG-4I for gdb@sourceware.org; Fri, 10 Jan 2014 04:44:51 +0100 Received: from 207-172-123-137.c3-0.upd-ubr1.trpr-upd.pa.cable.rcn.com ([207.172.123.137]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Jan 2014 04:44:51 +0100 Received: from naesten by 207-172-123-137.c3-0.upd-ubr1.trpr-upd.pa.cable.rcn.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Jan 2014 04:44:51 +0100 To: gdb@sourceware.org From: Samuel Bronson Subject: Re: Trailing Whitespace Date: Fri, 10 Jan 2014 03:44:00 -0000 Message-ID: References: <20140109144455.GA2972@blade.nx> <20140109145731.GA13720@localhost.localdomain> <20140109150145.GA3788@adacore.com> <52CEEE7B.50506@samersoff.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00012.txt.bz2 Dmitry Samersoff samersoff.net> writes: > 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. On the other hand, there *is* a sample "pre-commit" hook to catch trailing whitespace installed by default in every new git repository, so it would be as simple as running "mv .git/hooks/pre-commit{.sample,}".