reversing a text diff?

Open
#629 7 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
tooling

Research direction

Start by inspecting the existing reversePatch support for structured diffs and the public APIs for normal text diffs. Determine how a regular text diff could be reversed, then add coverage showing that applying the original and reversed operations migrates files in both directions.

Written by the indexing model from the issue text.

Description

I know there's a reversePatch for structured diffs, but is there a built in reverse function for the "normal" text diff? I'm not working with structured diffs, so having a way to migrate files both ways using regular text diffs would be super useful.

Dominant language
JavaScript
Stars
9.2k
Forks
555
Avg merge
1d 9h
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from kpdecker/jsdiff

All issues in kpdecker/jsdiff

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.