Git: Report current branch

Change-Id: Ied5ac2749b111d3b646080311ac6b52b3f86dc33
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Mathias Hasselmann
2012-10-18 21:30:06 +02:00
committed by Orgad Shaneh
parent fd6d0d8c29
commit c9b45c0d61
2 changed files with 7 additions and 1 deletions

View File

@@ -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.