vsds: version control data structures (and algorithms)
Types: Diff Keep Change DiffsExtender Picks Patch
Functions
Single Line Diff
This type is good for displaying differences to a user.
Fields:
- b
(base) orig file. '+'=added
- c
(change) new file. '-'=removed
- text
Methods
Fields:
Methods
Fields:
- rem
removed lines
- add
text to add
Methods
Fields:
Create picks (aka cherry picks) iterator from changes.
These can then be applied to a new base using vcds.patch(base, picks)
Each "pick" is a list of Diffs which are anchored by the lines
above and below (unless they are start/end of file).
Fields:
- changes
list of changes
- ci
for iterating
- de
- set
settings (need refactor)
Methods
- fn:groupChanges(ci)
Get which changes to include in a patch group.
A group is a series of patches with Keep:len() < anchorLen (default=3)
between them.
Fields: