Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
a0ef3524
Commit
a0ef3524
authored
15 years ago
by
Leena Miettinen
Committed by
Oswald Buddenhagen
15 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implement review comments to Using Version Control Systems by Friedemann Kleint.
parent
2a6225f7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/qtcreator.qdoc
+69
-36
69 additions, 36 deletions
doc/qtcreator.qdoc
with
69 additions
and
36 deletions
doc/qtcreator.qdoc
+
69
−
36
View file @
a0ef3524
...
...
@@ -367,6 +367,10 @@
encountered during a build. The pane filters out irrelevant output from
the build tools and presents the issues in an organized way.
Right-clicking on a line brings up a context menu with options to copy
the contents and to show a version control annotation view of the
line that causes the error message.
\image qtcreator-build-issues.png
...
...
@@ -1795,11 +1799,10 @@
Qt Creator uses the version control system's command line clients to access
your repositories. To set up the version control system's command line
clients to access your repositories, ensure that the command line clients
can be located using the \c{PATH} environment variable.
To specify the path to the command line client's executable, go to the
settings pages in \gui{Tools} > \gui{Options...}.
clients to access your repositories, make sure that the command line clients
can be located using the \c{PATH} environment variable or specify the path to
the command line client executables, in the settings pages shown by
\gui{Tools} > \gui{Options...}.
\section1 Setting Up Common Options
...
...
@@ -1843,21 +1846,30 @@
\e{User/alias configuration file} as well as a button that opens the
aforementioned user name dialog.
\section1 Creating VCS Repositories for New Projects
Qt Creator allows for creating VCS repositories for version
control systems that support local repository creation, such as
\bold{git} or \bold{hg}.
When creating a new project by selecting \gui File >
\gui{New File or Project...}, you can choose a version
control system in the final wizard page.
\section1 Using Version Control Systems
The version control sub-menus are in \gui{Tools} > \gui{Options...}
>
\gui{Version Control}.
The \gui{Version Control} page also displays the
The version control sub-menus are in \gui{Tools} > \gui{Options...}
.
The \gui{Version Control} page also displays the
version control system managing the current project
Each v
ersion
c
ontrol
system adds a pane to the \gui{Application O
utput
}
pane
s within which it logs
the commands
i
t execute
s
, prepended by a
Under \gui{Application Output} > \gui{V
ersion
C
ontrol
}, there is an o
utput
pane
showing
the commands t
hat are
execute
d
, prepended by a
timestamp and the relevant output.
\image qtcreator-vcs-pane.png
\section2 Adding
s
Files
\section2 Adding Files
When you create a new file or a new project, the wizard displays a page
asking whether the files should be added to a version control system.
...
...
@@ -1882,27 +1894,36 @@
\image qtcreator-vcs-diff.png
\section2 Viewing Versioning History and Change Details
Display the versioning history of a file by selecting \gui{Log}
(for \bold{git}) or \gui{Filelog}(for \bold{Perforce} and
\bold{Subversion}). Typically, the log output contains the date, the commit
message, and a change or revision identifier. Click on the identifier to
display a description of the change including the diff.
Right-clicking on an identifier brings up a context menu that lets you
show annotation views of previous versions (see \l{Annotating Files}).
\image qtcreator-vcs-log.png
\image qtcreator-vcs-describe.png
\section2 Annotating Files
Annotation views are obtained by selecting \gui{Annotate} or \gui{Blame}.
Selecting \gui{Annotate} or \gui{Blame} displays the lines of the file
prepended by the change identifier they originate from. Clicking on the
change identifier shows a detailed description of the
fil
e.
change identifier shows a detailed description of the
chang
e.
To show the annotation of a previous version in the \gui Annotate or
\gui Blame view, right-click on the version in the code. This option
allows you to navigate through the history of the file and obtain the
previous version of the code. This option also works for \gui git/hg
using SHA.
To show the annotation of a previous version, right-click on the
version identifier at the beginning
of a line and choose one of the revisions shown at the bottom of the context
menu. This allows you to navigate through the history of the
file and obtain previous versions of it. It also works for \gui git/hg
using SHA's.
The file log view for a single file has \gui Annotate in
the context menu of the version mentioned in the log, the user can
right-click a line to open a context menu which contains
\gui{Annotate Previous}.
To set up a VCS repository for new projects, select \gui File >
\gui{New File or Project...}. Setting up a VCS repository for new projects
enables you to initialize a repository for VCS that supports \bold{git/hg}.
The same context menu is available when right-clicking on a version
identifier in the file log view of a single file.
\section2 Committing Changes
...
...
@@ -1923,23 +1944,18 @@
\image qtcreator-vcs-commit.png
\section2 Viewing Versioning History and Change Details
Display the versioning history of a file by selecting \gui{Log}
(for \bold{git}) or \gui{Filelog}(for \bold{Perforce} and
\bold{Subversion}). Typically, the log output contains the date, the commit
message, and a change or revision identifier. Click on the identifier to
display a description of the change including the diff.
\image qtcreator-vcs-log.png
\image qtcreator-vcs-describe.png
\section2 Using git-specific Menu Entries
The git sub-menu contains additional entries:
\table
\row
\i \gui{Stash snapshot...}
\i Allows you to save a snapshot of your current
work under a name for later reference. For example, if you
want to try out something and find out later that it does not work,
you can discard it and return to the state of the snapshot.
\row
\i \gui{Stash}
\i Stash local changes prior to executing a \bold{pull}.
...
...
@@ -1947,6 +1963,16 @@
\i \gui{Pull}
\i Pull changes from the remote repository. If there are locally
modified files, you are prompted to stash those changes.
The \bold{git} settings page contains an option to do
a rebase operation while pulling.
\row
\i \gui{Clean repository.../Clean project...}
\i Collect all files that are not under version control
with the exception of patches and project files
and show them as a checkable list in a dialog
prompting for deletion. This lets you completely clean a build.
\row
\i \gui{Branches...}
\i Displays the branch dialog showing the local branches at the
...
...
@@ -1956,6 +1982,13 @@
tracks the remote branch, and then switches to it.
\image qtcreator-vcs-gitbranch.png
\row
\i \gui{Stashes...}
\i Displays a dialog showing the stashes created by
\gui{Stash snapshots...} with options to restore,
display or delete them.
\endtable
*/
...
...
@@ -3690,7 +3723,7 @@
\QD fetches plugins from the standard locations and loads the plugins
that match its build key. \QD is delivered both as a standalone application
and as part of
an
SDK, where it is integrated into Qt Creator.
and as part of
the
SDK, where it is integrated into Qt Creator.
The correct folder to place the plugins depends on
which one you use.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment