Skip to content

Diff: support "compaction heuristic" #11657

Closed

Description

Git 2.9.0 introduced a "compaction heuristic" option that uses blank lines as a "strong hint" in computing diff block boundaries. It would be nice to get use a similar heuristic in the VS Code diff viewer. (If it is using the git diff util behind-the-scenes, this would already work).

https://github.com/blog/2188-git-2-9-has-been-released#beautiful-diffs

  • VSCode Version: 1.5.0
  • OS Version: Mac OS
  • Git Version: 2.9.0+

Activity

  1. joaomoreno commented on Sep 8, 2016

    @joaomoreno
    Contributor

    Code doesn't use git for diffing behind the scenes. But it's a valid request for the diff algorithm.

  2. changed the title [-]Enable `git diff --compactionHeuristic` or similar whitespace detection[/-] [+]Diff: support "compaction heuristic"[/+] on Sep 8, 2016
  3. added
    feature-request
    diff-editor
    and removed
    git
    on Sep 8, 2016
  4. alexdima commented on Jul 4, 2017

    @alexdima
    Member

    I think I just implemented this in c8df698 (for #30087)

  5. joaomoreno commented on Jul 4, 2017

    @joaomoreno
    Contributor

    damn son

  6. locked and limited conversation to collaborators on Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

diff-editorfeature-requeston-testplan

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions