| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
- I changed what I thought was a private API, but it turns out that
people used Hunk#unshift. Because the Hunk#merge functionality is
safer and more correct, I have provided Hunk#unshift as an alias to
Hunk#merge.
- Note that Hunk#unshift should be considered deprecated and the alias
will be removed in a future major version of Diff::LCS.
|
| |
|
|
|
|
| |
The output is now indistinguishable from diff (at least for -u).
|
| |
|
| |
|
|
|
|
|
| |
This bug has been filed for five and a half years and I have finally
fixed it. By ghu it feels good.
|
| |
|
|
|
|
|
| |
- Bringing indents in a little.
- Simplifying a little logic so that boolean shortcuts are taken faster.
|
| |
|
|
|
|
| |
- "assigned but unused variable"
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. All Diff::LCS::__* methods are now moved to Diff::LCS::Internals and
named without the underscores.
2. Fixed the documentation for Diff::LCS::patch. (Some formatting may
have been broken.)
3. Eliminated normalize_patchset in favour of the (substantially
similar) analyze_patchset. This allows for a single-pass over a
patchset to determine whether the patchset contains changes and
transform it to the object-based format.
4. Made Diff::LCS::ContextChange descend from Diff::LCS::Change. This
will probably change so that both descend from something like a
Diff::LCS::AbstractChange because of some issues that may arise with
case statement order.
|
| |
|
|
|
|
| |
https://github.com/halostatue/diff-lcs/issues/3
|
| |
|
|
|