forked from qt-creator/qt-creator
Git: Report current branch
Change-Id: Ied5ac2749b111d3b646080311ac6b52b3f86dc33 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
fd6d0d8c29
commit
c9b45c0d61
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user