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

Re: Blank lines

From: Branko Čibej <brane_at_apache.org>
Date: Thu, 5 May 2016 05:01:10 +0200

On 04.05.2016 22:58, Daniel Shahaf wrote:
> Eric Johnson wrote on Wed, May 04, 2016 at 09:42:53 -0700:
>> On 5/4/16 4:43 AM, Dariusz Staniak wrote:
>>> How can I force
>>> svn status
>>> not to indicate files with added/removed blank lines as modified?
>> You can't. Subversion has to treat all changes to files as relevant.
>> Consider something like Markdown - an extra blank line means a paragraph
>> break. In code, where inserting a blank line might help readability.
> Not quite.
>
> Internally, Subversion does have to use strict byte-for-byte comparisons
> (since committed files are preserved byte-for-byte in the repository).
>
> However, that has no bearing on the sense of comparison user-facing
> logic, such as 'diff' and 'status', should use: these could implement
> any sort of comparison deemed useful. In particular, it might be useful
> for them to also be able to answer the question "What are all the files
> that have non-whitespace changes?".

Not 'status' -- 'svn status' should always show what 'svn commit' will
send to the server. But 'diff', I agree, could be smarter. For example,
right now, 'svn diff --summarize -x -w' will mention files that contain
only whitespace changes, even though 'svn diff -x -w' will show an empty
diff for those files.

-- Brane
Received on 2016-05-05 05:00:58 CEST

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

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