Doc: Describe viewing diff of staged changes

Task-number: QTCREATORBUG-32575
Change-Id: I57bf02a18a2124ecc9cb54caeb66bce0b0310aa9

Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
Leena Miettinen
2025-05-20 11:02:56 +02:00
parent cc7ab7dc72
commit c9671dae65
2 changed files with 16 additions and 0 deletions

View File

@@ -188,6 +188,7 @@ Version Control Systems
values values
* Added actions for staged changes * Added actions for staged changes
([QTCREATORBUG-32361](https://bugreports.qt.io/browse/QTCREATORBUG-32361)) ([QTCREATORBUG-32361](https://bugreports.qt.io/browse/QTCREATORBUG-32361))
([Documentation](https://doc-snapshots.qt.io/qtcreator-17.0/creator-how-to-git-diff.html))
* Added `Revert` to the actions in the `Instant Blame` tooltip * Added `Revert` to the actions in the `Instant Blame` tooltip
* Added the option to create annotated tags to the `Create Branch` dialog * Added the option to create annotated tags to the `Create Branch` dialog
* Added a `Diff & Cancel` option to the `Uncommitted Changes Found` dialog * Added a `Diff & Cancel` option to the `Uncommitted Changes Found` dialog

View File

@@ -286,6 +286,21 @@
\li Removes the selected lines from the staging area. \li Removes the selected lines from the staging area.
\endtable \endtable
To view a diff of staged changes:
\list
\li To view staged changes in the current file, go to \uicontrol Tools >
\uicontrol Git > \uicontrol {Current File} and select
\uicontrol {Diff Staged Changes in <file>}.
\li To view staged changes in the current project directory, go to
\uicontrol Tools > \uicontrol Git >
\uicontrol {Current Project Directory} and select
\uicontrol {Diff Staged Directory of <project directory> Changes}.
\li To view staged changes in the local repository, go to
\uicontrol Tools > \uicontrol Git > \uicontrol {Local Repository} and
select \uicontrol {Diff Staged}.
\endlist
\if defined(qtcreator) \if defined(qtcreator)
\sa {Use Git}{How To: Use Git}, {Git} \sa {Use Git}{How To: Use Git}, {Git}
\endif \endif