[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: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Wed, 04 May 2016 20:58:39 +0000

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?".

Previous discussion: http://svn.haxx.se/users/archive-2015-03/0141.shtml
(Message-ID: <00fa01d062a7$a1bca660$e535f320$@qqmail.nl>)

Cheers,

Daniel
Received on 2016-05-04 22:58:40 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.