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

Regression: Misleading and inconsistent diff when having staged and unstaged changes in git

    XMLWordPrintable

Details

    • f621ee5bc4aa144e4c907d38762fa7cf72e7a07a

    Description

      1. Open a file which is checked in to git.
      2. Add a line to the file and save it.
      3. Select "Tools" -> "Git" -> "Current File" -> "Stage ... for Commit" from the menu.
      4. Select "Tools" -> "Git" -> "Current File" -> "Diff of ..." from the menu.
        Creator does not display any changes.
      5. Add another line to the file and save it again.
      6. Select "Tools" -> "Git" -> "Current File" -> "Diff of ..." from the menu.
        Creator displays both, the staged and the unstaged change.

      "Diff" in Creator should display the same as "git diff" on the command line would do, i.e. only unstaged changes. In 2.7 this used to work correctly.

      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:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes