diff2html

Pretty diff to html javascript library (diff2html)

MIT License

Downloads
827.7K
Stars
2.9K
Committers
45
diff2html - Support unified diffs

Published by rtfpessoa over 8 years ago

Features:

  • Added support unified diffs
diff2html - Allow to select code without line numbers

Published by rtfpessoa over 8 years ago

Improvements:

  • Allow to select code without line numbers

Contributor:

  • @lantian
diff2html - Bug fixes and tests

Published by rtfpessoa over 8 years ago

Fixes:

  • Fixes several bugs related to configurations

Tests:

  • Coverage of 90%+ achieved, now the parser is much safer and the ui is also stable.

Goals:

  • Keep coverage above 90%

Note: I still have no clue on how to do tests without having white space comparison for the htmls

diff2html - Fix build on webpack

Published by rtfpessoa over 8 years ago

Fixes:

  • Fix build on webpack by adding hogan.js dependency
diff2html - Use hogan.js as templating engine

Published by rtfpessoa over 8 years ago

Change:

  • Use hogan.js as a templating engine instead of nunjucks
diff2html - Fix diff matching for big chunks

Published by rtfpessoa over 8 years ago

Fixes

  • Fix diff matching for big chunks
diff2html - Fix /dev/null paths

Published by rtfpessoa over 8 years ago

Fixes:

  • Avoid displaying /dev/null paths for files
diff2html - Fix filename parsing on filenames with tabs

Published by rtfpessoa over 8 years ago

diff2html - Fix parsing of special filenames

Published by rtfpessoa over 8 years ago

diff2html - Use nunjucks to generate HTML

Published by rtfpessoa over 8 years ago

diff2html - Cleanup and platform fixes

Published by rtfpessoa over 8 years ago

Features:

  • Create support wrapper to simplify browser support (highlight and js effects)

Fixes:

  • Support all types of end-of-line
diff2html - Improve line matching and add better ins and del markers

Published by rtfpessoa almost 9 years ago

Features:

  • Highlighting: Support for matching "ins" and "del" markers to allow
    for a "change" marker
  • Added similarity search feature to match similar lines for
    highlighting.

Fixes:

  • Fixed a bug that prevented highlighting when more lines were deleted
    from a replacement block than added
  • All lines are now split into prefix and content spans

Contributor:

  • @escitalopram
diff2html - Fix changes style on file headers

Published by rtfpessoa almost 9 years ago

Fixes:

  • Since the alignment of the changes the file headers lost the style due to css changes

Updates

  • Update diff dependency and add dev dependencies
diff2html - Fix files summary layout

Published by rtfpessoa almost 9 years ago

Fixes:

  • Fix files summary layout

Contributor:

  • @Rantanen
diff2html - Performance update

Published by rtfpessoa about 9 years ago

Improvements:

  • performance improvements

Contributor:

  • @pbu88
diff2html - Add changed files list summary

Published by rtfpessoa about 9 years ago

Features:

  • Show the list of changed files
    • Optionally show the file list before the diff
    • Change usage to accept configuration instead of multiple methods

Contributor:

  • @nmatpt
diff2html - Fix spaces on file paths

Published by rtfpessoa about 9 years ago

  • added more prefix, git uses other prefixes rather than a or b if the config setting diff.mnemonicprefix is set to true.
  • fix spaces on file paths

Contributor:

  • @pbu88
diff2html - Use webpack for the browser

Published by rtfpessoa about 9 years ago

  • use webpack for the browser release
  • fix new and deleted line prefixes, use different prefixes for simple and combined diffs
diff2html - Webpack for the browser

Published by rtfpessoa about 9 years ago

  • use webpack for the browser
  • fix new and deleted line prefixes, use different prefixes for simple and combined
diff2html - Clean project, better module exposing and documentation

Published by rtfpessoa over 9 years ago

Changes:

  • use native JS in example instead of jQuery
  • better module exposing now using exports, module.export, self, window, global and this
  • add example link to bower and npm definition
  • add documentation on how to highlight