Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Add Patch from text-document - #62

Merged
maxbrunsfeld merged 46 commits into
masterfrom
mb-add-patch
May 22, 2015
Merged

maxbrunsfeld merged 46 commits into
masterfrom
mb-add-patch

Conversation

@maxbrunsfeld

Copy link
Copy Markdown
Contributor

This contains all the commits from text-document that related to the evolution of the Patch data structure.

/cc @nathansobo

maxbrunsfeld and others added 30 commits May 21, 2015 15:21
Signed-off-by: Nathan Sobo <[email protected]>
* Compose Lines, HardTabs and SoftWraps transforms
* Add passThrough operation for Transforms, so that
  they can preserve traversals created by their
  sources.

Signed-off-by: Nathan Sobo <[email protected]>
We could always add an alias based on the Symbol if we wanted to support
the protocol, but we shouldn’t be using the symbol in normal code.
Also, rename the Patch's 'regions' to 'hunks'

Signed-off-by: Nathan Sobo <[email protected]>
Patches are becoming a central concept in this system. A patch is
basically a function that takes input and produces output. This is
clearer terminology than source and target and emphasizes the streaming/
transformational nature of the system.

There’s a chance “input” could be confused with user input, but I don’t
think it’s a big enough chance to not rename stuff.
Fixed a couple of functions to treat point-compatible array as a Point
Signed-off-by: Nathan Sobo <[email protected]>
This helps clarify that we’re talking about the index of the next child,
rather than our index in the children of the parent. It seems simple but
this helps my brain.
@maxbrunsfeld: Take a look at the new approach. I started storing the
offset at each entry of the path (formerly stack) because I think it’s
needed in order to adjust the extent of the parent nodes.

This passes the patch specs but there’s lots of issues elsewhere. I
think this is the right direction but the git history is all there if
you disagree.
maxbrunsfeld pushed a commit that referenced this pull request May 22, 2015
Add Patch from text-document
@maxbrunsfeld
maxbrunsfeld merged commit 2c574ac into master May 22, 2015
@maxbrunsfeld
maxbrunsfeld deleted the mb-add-patch branch May 22, 2015 00:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants