Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trailing newlines are calculated and represented in differ output. #290

Closed

Commits on Jul 4, 2016

  1. Configuration menu
    Copy the full SHA
    5a332b7 View commit details
    Browse the repository at this point in the history
  2. Account for trailing newlines

    *Backfills hunk_generator with extra newline to account for 'true'
    trailing newlines that should be included in diff calculation.
      Example:
    
      "cat\n".split("\n") => []
      "cat\n\n".split("\n") => ["cat"]
    
      "cat\n".split("\n", -1) => ["cat", ""]
      "cat\n\n".split("\n", -1) => ["cat", "", ""]
    
    *Removes extra newline representation from hunk_generator when crafting differ
    output message.
    ChaeOkay committed Jul 4, 2016
    Configuration menu
    Copy the full SHA
    3a0af72 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5579391 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7de6553 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2016

  1. Configuration menu
    Copy the full SHA
    b4a3bac View commit details
    Browse the repository at this point in the history