gitlabhq/gitlabhq — Issue #61: Code Diff - accurate line numbers
Author: StephenBrown2
Created: 2011-10-25 15:18:12+00:00
State: open

In github when viewing the code changes in a commit, the diff line numbers are the same as the actual numbers in the file. In the gitlab demo, they start at 1 or some other number, regardless of where in the file that change resides.

Note I have only just viewed the live demo yesterday and not yet installed it on my own server.

This can be seen on any indiviudal commit diff, for example the link in Issue #30: http://demo.gitlabhq.com/rails/commits/daca35c394dd490aeeaad9074141d7d86e9efb2c#actionpack/lib/action_controller/test_case.rb

Or even from the latest commit:
Commit view: http://demo.gitlabhq.com/diaspora/commits/ae1fedc73b06367f7dc4ffa6b2f735530c8ccc6e
Tree view: http://demo.gitlabhq.com/diaspora/tree/ae1fedc73b06367f7dc4ffa6b2f735530c8ccc6e/app/views/layouts/_header.html.haml

The numbers simply do not match up.