[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Re: [Subclipse-users] diff flags for "create patch"

From: Mark Phippard <markphip_at_gmail.com>
Date: Fri, 19 Jun 2009 08:55:38 -0400

On Fri, Jun 19, 2009 at 1:34 AM, Steve Ball<steve_at_ingres.com> wrote:
>> You are going to have the exact same problem when you commit.  All
>> those whitespace changes are going to be committed.  This is going to
>> complicate diff and more importantly merge and update for other users.
>>  Wouldn't it be better to just set your editor preferences in CDT so
>> that it did not do this?
>
>
> Yes, that would be a much better option if I could find out exactly why the CDT editor has inserted those white-space changes. I was already looking into that so that this doesn't happen in the future. If you have any guidance on that it would be helpful. Unfortunately, this time, it already happened before I noticed it, and I'm loathe to go back and re-make all the changes. For this time round I can just generate the patch diffs from the command line and I'll live with the extra white-space diffs for this submission (I guess there's no "ignore whitespace" option on the commit is there?).

Nope. Commit will commit all the changes.

> We have a very diverse set of developers (not unusual) who work on Windows, Linux/UNIX, and even VMS, so there may be all kinds of formats in the files that come down from subversion that the editor has to deal with, I think the CDT editor seems to be confused about some of it and inserts whitespace for some tabs or newlines. This may be a problem that we simply can't solve, and I really don't want to have to edit the files outside Eclipse, it would defeat most of the point of having an IDE.

I can sympathize. I sometime commit to Subversion and they have very
formal coding style rules and get pretty pissed if you commit
whitespace changes. They also almost all use Emacs or VIM. I do not
have it around anymore, but one time I was able to get CDT and JDT
setup so that all of the coding rules were in place. Things like no
tabs, number of spaces for indent, brace styles etc. I recall
everything I needed was in the preferences. The hard part was just
learning what all the coding rules were so that I could set it up
appropriately.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2363502
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2009-06-19 14:56:01 CEST

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.