subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Shahaf <...@daniel.shahaf.name>
Subject Re: Blank lines
Date Wed, 04 May 2016 20:58:39 GMT
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

Mime
View raw message