Diff?

Brian Milby brian at milby7.com
Sat Feb 1 10:02:47 EST 2020


I use this in ScriptTracker to get the changes when saving a stack.  I squash them together into a consolidated diff for the stack.  I have not done anything with the patch side though.

Thanks,
Brian
On Feb 1, 2020, 6:02 AM -0500, Niggemann, Bernd via use-livecode <use-livecode at lists.runrev.com>, wrote:
> Richard,
>
> Library com.livecode.library.diff was introduce in 9.0
>
> From the release notes:
> diff library
> A new library has been implemented for computing diffs between text sources and applying those diffs to text.
>
> https://github.com/livecode/livecode/blob/develop/extensions/script-libraries/diff/diff.livecodescript
>
> I have used it occasionally and it worked well once you get the syntax right and find out what it does.
> Especially in
>
> DiffCompare(pFrom,pTo,pContext)
>
> how pContext works. It takes a little experimentation.
>
> Kind regards
> Bernd
>
> > Richard wrote:
> > I just discovered three very interesting functions in the Dictionary:
> >
> > DiffCompare
> > DiffCompareFiles
> > DiffPatch
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list