Leo as a git diff

20 views
Skip to first unread message

Edward K. Ream

unread,
Feb 23, 2015, 7:41:22 AM2/23/15
to leo-e...@googlegroups.com
I am investigating using Leo as an external git diff program.  This may involve adding one or more diff-related command-line arguments to Leo. The lack of an outline-based diff isn't a big barrier to use Leo, but having an outline-based diff would be a plus.

Leo already has the capability to diff .leo files, and that capability could easily be extended to diff external files corresponding to @clean, @file and @auto nodes. 

At present, the biggest challenge is simply to invoke Leo as an external program from SourceTree. It's command-line hell, but it's not rocket science.  I hope to have something to report in a day or three, unless other projects intervene.  These are heady times...

Edward

P.S. Thinking of using Leo as a diff program may have been the line of thought that lead to @clean. It turned my attention to the @shadow algorithm, and that may have been enough to see that the algorithm could get sentinels from the .leo file instead of hidden shadow files.

I'll probably never be able to recreate a clearer picture of how the Aha came to be.  That's the nature of big Aha's: they obliterate previous ways of thought so completely that it's hard to remember the time before the Aha.

EKR
Reply all
Reply to author
Forward
0 new messages