>
> To my surprise, the resulting diff is even worst than I thought it would 
> be: 
> https://github.com/xgid/leo.db-vcs-tests/commit/5648c4ea02c9e1f47efe86ec990fc9aff6554c11?diff=unified
>

Well I am not satisfied with xml diffs either. I believe that it can be 
done by exporting only those features that we care to see diffs of, and in 
smart way so that ordinary text diffs that git (or fossil) calculate give a 
good insight of what really has changed. I have made some initial 
experiments with this idea a while ago. It is on my to-do list and I will 
try to find good way to represent changes that are made using Leo as 
editor. Some fairly simple changes like sorting siblings can give false 
impression of massive changes when in fact there is no big difference in 
code. Those changes should take in to account that editor used was Leo, 
capable of making such changes. Diff tools are made with the assumption 
that editor can either insert lines of code, deletes block of lines or make 
simple change in a line. They can't express any other kind of change like 
moving node from one place to another. One way to deal with it is to keep 
content of every node in git as separate file, and structure of outline in 
a separate text file. When sorting siblings the only change registered 
would be in the order of nodes, and no other changes would be reported in 
diffs. That would however require that external files are not part of git. 
There could be written a special script to re-create all external files 
from separately fetched nodes(bodies and headlnes). That script can be 
hooked with `git clone/fetch/pull` to be executed after any of those 
operations. That script can be minimal Leo distribution or just standalone 
version of leoAtFile and leoFileCommands modules.

Vitalije

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to