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

Re: Blame/annotate not good enough...

From: Branko Čibej <brane_at_wandisco.com>
Date: Tue, 23 Apr 2013 14:10:17 +0200

On 23.04.2013 08:45, Ryan Schmidt wrote:
> If you want to prevent deletions of lines, install a pre-commit hook that enforces that rule.

That would be quite hard to enforce, since it's not obvious just from
looking at (e.g., diffing) two files which lines were actually deleted
by the user. Diff doesn't show that; it tries to show the minimum set of
differences between two files.

In other words, you'd have to invent a much smarter algorithm with a set
of heuristics tailored for your specific editing rules.

-- Brane

Branko Čibej
Director of Subversion | WANdisco | www.wandisco.com
Received on 2013-04-23 14:11:00 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.