Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #8848

Closed
Open
Created Feb 24, 2015 by Administrator@rootOwner

Side-by-side diff has problems detecting related blocks in some cases

Created by: TurkeyMan

I commented a block of code, so the change was a bunch of '//' added to the start of a series of lines. The side-by-side diff doesn't illustrate those blocks side-by-side, with only 2 characters on each line having changed, it rather sees it as the first block removed, and the second block added, which is illustrated below the removed block.

Eg:

1  code                                   
2  more code                     
3  even more code               1  //code
                                2  //more code
                                3  //even more code

Expect:

1  code                         1  //code  
2  more code                    2  //more code
3  even more code               3  //even more code
Assignee
Assign to
Time tracking