emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: Git recommendations


From: Samuel Wales
Subject: Re: [Orgmode] Re: Git recommendations
Date: Sun, 30 Nov 2008 19:29:47 -0700

Do you know whether any of the git modes allow you to
preprocess the files that get diffed or ediffed?

For example, let's say that you want to ignore all line
moves.  In that case, you might run both files (e.g. an old
version and the current version) through "sort -u".

Then the diff will look funny if you made a lot of changes,
but if you only moved lines, it would show up as a zero
diff, which is exactly what you want if you don't care about
line moves.  If you made just a few changes and a lot of
line moves, those changes would show up.  A more
sophisticated algorithm could keep the changed lines in
place.

Likewise, you could preprocess org files to make diffs
cleaner by eliminating all level changes, etc.

I have done this in the shell for a long time and found it
useful; it would be nice in a git mode, if any support that.

Of course, perhaps it could be done in ediff, somehow.

I wonder if dvc will win because it has backends.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]