diff options
author | Mathias Hasselmann <mathias@openismus.com> | 2012-10-18 21:30:06 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2012-11-16 14:11:24 +0100 |
commit | c9b45c0d6129c0ea3c38c91beebdd4816658d495 (patch) | |
tree | ede5bb68c109ae61be32ee7e4b2306c96646eb6d /src/plugins/git/gitversioncontrol.cpp | |
parent | fd6d0d8c294b7d80fe97363c2e32050d8de66bc9 (diff) | |
download | qt-creator-c9b45c0d6129c0ea3c38c91beebdd4816658d495.tar.gz |
Git: Report current branch
Change-Id: Ied5ac2749b111d3b646080311ac6b52b3f86dc33
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/git/gitversioncontrol.cpp')
-rw-r--r-- | src/plugins/git/gitversioncontrol.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/git/gitversioncontrol.cpp b/src/plugins/git/gitversioncontrol.cpp index eaa8c77370..692e7fd38e 100644 --- a/src/plugins/git/gitversioncontrol.cpp +++ b/src/plugins/git/gitversioncontrol.cpp @@ -140,7 +140,12 @@ QString GitVersionControl::vcsGetRepositoryURL(const QString &directory) return m_client->vcsGetRepositoryURL(directory); } -/* Snapshots are implement using stashes, relying on stash messages for +QString GitVersionControl::vcsTopic(const QString &directory) +{ + return m_client->synchronousBranch(directory); +} + +/* Snapshots are implemented using stashes, relying on stash messages for * naming as the actual stash names (stash{n}) are rotated as one adds stashes. * Note that the snapshot interface does not care whether we have an unmodified * repository state, in which case git refuses to stash. |