X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <EB50A544D46A44E590CC97C361FFE70C@desktop2>
From: "Sisyphus" <sisyphus1@optusnet.com.au>
To: <cygwin@cygwin.com>, "Matthias Andree" <matthias.andree@gmx.de>
References: <8E986D59E88F4C47BD14EA1E4EBB696F@desktop2> <op.u66nqov11e62zd@merlin.emma.line.org>
In-Reply-To: <op.u66nqov11e62zd@merlin.emma.line.org>
Subject: Re: 'git commit' problem
Date: Wed, 27 Jan 2010 23:03:00 +1100
MIME-Version: 1.0
Content-Type: text/plain; 	format=flowed; 	charset="UTF-8"; 	reply-type=response
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com


----- Original Message ----- 
From: "Matthias Andree" <matthias.andree@gmx.de>
To: "Sisyphus" <sisyphus1@optusnet.com.au>; <cygwin@cygwin.com>

>> When I try to 'git commit' my amendments I often get hit with "* 
>> trailing whitespace (line xxx)" errors.
>
> Configure your editor to not leave whitespace at the end of lines 
> (sometimes the features are named flowed mode or soft line breaks or 
> similarly, not always obvious).

Annoyingly, the offending whitespace seems to already be in existence on the 
files (on github) that I'm trying to amend.
Afaict my editor isn't introducing any additional trailing whitespace, but I 
can't commit because of the *pre-existing* trailing whitespace.

Anyway, thanks for the pointers Matthias ... appreciated.

(For the moment, I'm just running some perl code on the file(s) to clean up 
the offending spaces before I commit. It's a bit tedious, but it only needs 
to be done once on each file, and it does enable me to get the job done.)

Cheers,
Rob 


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

