eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Diff2::Patch':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: Patch (private in Diff2

This class is only visible from within Diff2.

Inheritance:

   Object
   |
   +--Diff2::Patch

Package:
stx:libtool
Category:
Collections-Sequenceable-Diff
Owner:
Diff2
Author:
Tony Garnock-Jones <tonyg@lshift.com>

Description:


A DiffPatch has a collection of DiffChunks, and a collection of corresponding 
SequenceableCollection snippets. It can be used to patch a file (= SequenceableCollection) 
forwards or backwards.



[instance variables:]
    chunks:         <SequenceableCollection of DiffChunk->DiffChunk>
    snippets:       <SequenceableCollection of SequenceableCollection->SequenceableCollection>

[class variables:]


Related information:



Instance protocol:

accessing
o  applyTo: file
Applies this patch to the given collection. Makes no sanity checks on the contents of the collection - simply blindly applies the chunks and snippets to its argument.

as yet unclassified
o  initChunks: c file1: f1 file2: f2

selecting
o  invert
Causes this patch to invert itself; if previously it represented the changes from file1 to file2, after being sent #invert, it will represent the changes from file2 to file1. After inversion, calling #applyTo: on file2 will yield file1, rather than the other way around.



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Thu, 11 Aug 2022 11:16:34 GMT