Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-29374

git: Double-click on diff line jumps to same line number but different content

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt Creator 10.0.2, Qt Creator 11.0.0-rc1
    • Ubuntu 22.04 LTS
      Windows 11

    Description

      1. Show commit 417a6db08776ab5f49389e974a777fb78f1de3eb from Qt Creator's source repository in Creator.
      2. In the diff, double-click the first added line:
        int i = 1892;
        

        Creator opens the correct file but places the cursor at the very end.

      This seems to happen because the line was added as line 39. In the meantime, the file's header was removed so the added content can now be found in line 17.

      Relying on unchanged line numbers is problematic because the whole point of a VCS is that the files' contents will change.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              orgads Orgad Shaneh
              rlohning Robert Löhning
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes