1. 26 Jan, 2018 1 commit
  2. 22 Sep, 2017 2 commits
  3. 20 Sep, 2017 1 commit
  4. 09 Sep, 2017 1 commit
  5. 06 Jul, 2017 1 commit
    • Ximin Luo's avatar
      presenters: html: more intuitive "limit" flags, some backwards-incompatible changes: · c6aaca0f
      Ximin Luo authored
      --max-report-size:
        Old: in --html-dir this limited only the parent page
        New: in --html-dir this applies across all pages
      
      --max-diff-block-lines:
        Old: in --html-dir 4 * this number applied across all pages (for a given diff block)
        New: in --html-dir this applies across all pages (for a given diff block)
      
      --max-page-size:
        New flag
        Applies to the sole --html page, or the top-level --html-dir page
      
      --max-report-child-size
        Renamed to
      --max-page-size-child:
        No behavioural changes
      
      --max-diff-block-lines-parent
        Renamed to
      --max-page-diff-block-lines:
        Old: Only applied to the top-level --html-dir page
        New: Applies to the sole --html page, or the top-level --html-dir page
      
      The reasoning behind these changes is that it's unlikely someone would want to
      generate a 500MB single html page, but they might in theory generate a 500MB html
      directory split up into several 200KB pages, plus a single 200KB html page as
      a summary. The new semantics for these flags allows both to be generated in one
      run using the same set of flags.
      c6aaca0f
  6. 30 Jun, 2017 1 commit
  7. 29 May, 2017 1 commit
  8. 13 May, 2017 1 commit
  9. 29 Apr, 2017 2 commits
  10. 10 Feb, 2017 1 commit
  11. 07 Feb, 2017 1 commit
  12. 22 Jan, 2017 1 commit
  13. 18 Dec, 2016 1 commit
  14. 28 Sep, 2016 1 commit
  15. 08 Sep, 2016 3 commits
    • Ximin Luo's avatar
      html-dir: use 4 * the given max-diff-block-lines · 8a4729c9
      Ximin Luo authored
      This way, --html x.html --html-dir x gives reasonable output for both.
      
      The hardcoded ratio could be another flag, but I think we have enough flags.
      8a4729c9
    • Ximin Luo's avatar
      difference: Don't truncate diff output by default, and use a separate flag when doing so · 35d48f9d
      Ximin Luo authored
      Previously, max-diff-block-lines would also (on top of altering html output)
      interfere with diff's output on a deeper level, hiding it from all presenters.
      This was surprising with --text output since it does not honour max-report-size
      and is meant to be a "pure-by-default" output that shows everything.
      
      So now we move this behaviour to a separate flag, max-diff-block-lines-saved,
      and document it more clearly. Most users should not need this, unless they keep
      running out of memory.
      35d48f9d
    • Ximin Luo's avatar
      html-dir: In html-dir output, split large diffs across several child pages · 9d804217
      Ximin Luo authored
      Also add some flags so html-dir behaviour is easier to reason about.
      
      1. Previously, max-report-size would apply to both parent and child pages,
      which didn't work well if you disabled this limit.
      
      Instead, we now add an extra --max-report-child-size that remains in effect
      even with --no-default-limits.
      
      2. Previously, separate-file-diff-size would affect the parent page in an
      unsmooth way: if a diff block had N lines, the parent page would contain N
      lines, but if the diff block had N+1 lines, then 0 would be shown on the parent
      page. This gives a visually counterintuitive result where a larger diff would
      have less presence on the parent overview page.
      
      Instead, we now change this to --max-diff-block-lines-parent which has a
      smoother behaviour. If the diff block has N+1 lines, then N would be shown on
      the parent page and 1 would be shown on the child page. This could be smoothed
      out further, but we'll leave this complexity for the future.
      9d804217
  16. 06 Sep, 2016 2 commits
  17. 24 Aug, 2016 1 commit
  18. 13 Dec, 2015 1 commit
    • Joachim Breitner's avatar
      Multi-file HTML output · 99c6c515
      Joachim Breitner authored
      In order to make it feasible to create HTML output with large diffs,
      this adds a new presenter mode (--html-dir) which spreads the output
      over multiple files in a directory.
      
      In particular, the table presenting a diff that is larger than the
      number of bytes specified via --separate-file-diff-size (200kB by
      default) is writen to a separate file and loaded on demand using
      JavaScript/JQuery.
      
      By default, JQuery is symlinked into the output directory from
      /usr/share/javascript/jquery/jquery.js (install libjs-jquery!), but an
      alternative location (e.g. /javascript/jquery/jquery.js) can be
      specified using the --jquery command line parameter.
      
      Closes: #806891
      99c6c515
  19. 03 Sep, 2015 1 commit
    • Jérémy Bobbio's avatar
      Add --new-file to treat absent files as empty · d6fcb861
      Jérémy Bobbio authored
      When specifying --new-file, diffoscope will treat non-existing files
      (which also applies to containers) as empty.
      
      We had to change perform_fuzzy_matching to return names so we can
      pop them out the dictionaries with the set of files that have not
      been compared.
      
      Thanks Jakub Wilk for the suggestion.
      
      Closes: #797560
      d6fcb861
  20. 02 Sep, 2015 3 commits
  21. 20 Aug, 2015 1 commit
  22. 19 Aug, 2015 2 commits