1. 24 8月, 2017 1 次提交
    • S
      Show un-highlighted diffs when blobs are the same · e8525e10
      Sean McGivern 提交于
      For some old merge requests, we don't have enough information to figure out the
      old blob and the new blob for the file. This means that we can't highlight the
      diff correctly, but we can still display it without highlighting.
      e8525e10
  2. 22 8月, 2017 1 次提交
    • S
      Always return a simple diff viewer · b0f09406
      Sean McGivern 提交于
      We didn't have a fallback case before, because we believed the conditions were
      exhaustive. They weren't, so we can always fallback to not previewing.
      b0f09406
  3. 31 7月, 2017 1 次提交
  4. 14 6月, 2017 1 次提交
  5. 08 6月, 2017 2 次提交
  6. 24 5月, 2017 3 次提交
  7. 29 11月, 2016 1 次提交
  8. 25 11月, 2016 2 次提交
    • H
      Add keyword arguments to truncated_diff method · a761c59a
      hhoopes 提交于
      * Added keyword arguments to truncated_diff_lines method to allow for using highlighting or not (html templates vs. text)
      * Tweaked templates for consistency and format appropriateness
      a761c59a
    • H
      Change diff highlight/truncate for reusability · f928dba9
      hhoopes 提交于
      Previously the `truncated_diff_lines` method for outputting a discussion diff took in already highlighted lines, which meant it wasn't reuseable for truncating ANY lines. In the way it was used, it also meant that for any email truncation, the whole diff was being highlighted before being truncated, meaning wasted time highlighting lines that wouldn't even be used (granted, they were being memoized, so perhaps this wasn't that great of an issue). I refactored truncation away from highlighting, in order to truncate formatted diffs for text templates in email, using `>`s to designate each line, but otherwise retaining the parsing already done to create `diff_lines`.
      
      Additionally, while notes on merge requests or commits had already been tested, there was no existing test for notes on a diff on an MR or commit. Added mailer tests for such, and a unit test for truncating diff lines.
      f928dba9
  9. 14 11月, 2016 1 次提交
  10. 11 11月, 2016 1 次提交
  11. 18 10月, 2016 1 次提交
  12. 03 8月, 2016 2 次提交
  13. 19 7月, 2016 1 次提交
  14. 08 7月, 2016 1 次提交
    • S
      Collapse large diffs by default · b6b26692
      Sean McGivern 提交于
      When rendering a list of diff files, skip those where the diff is over
      10 KB and provide an endpoint to render individually instead.
      b6b26692
  15. 07 7月, 2016 6 次提交
  16. 18 3月, 2016 1 次提交
  17. 04 3月, 2016 1 次提交
  18. 21 1月, 2016 1 次提交
  19. 20 1月, 2016 1 次提交
  20. 15 1月, 2016 2 次提交
  21. 08 1月, 2016 1 次提交
  22. 31 12月, 2015 1 次提交
  23. 30 12月, 2015 1 次提交
  24. 15 12月, 2015 1 次提交
  25. 01 10月, 2015 1 次提交
  26. 24 9月, 2014 1 次提交
  27. 09 9月, 2014 2 次提交
  28. 08 9月, 2014 1 次提交