diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2013-01-19 23:19:38 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2013-01-21 12:19:55 +0100 |
commit | 7b39f41c052e219ae708cf8429d3b5e30bf4819e (patch) | |
tree | ffede11e2faaa42dd2209b63578524cdec2a1c69 /src/plugins/perforce/perforceeditor.h | |
parent | 57ee50d52fe405670c2558c72ace91d44fb7d71f (diff) |
VCS: Refactor fileNameFromDiffSpecification
Use diff file pattern to match file name. Avoid duplication.
Include unit tests for Git
Change-Id: Ib68a08368270a27976a3e16bdd1cb219a52b8889
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/perforce/perforceeditor.h')
-rw-r--r-- | src/plugins/perforce/perforceeditor.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/perforce/perforceeditor.h b/src/plugins/perforce/perforceeditor.h index 3a8791eb522..1edf5eba3e3 100644 --- a/src/plugins/perforce/perforceeditor.h +++ b/src/plugins/perforce/perforceeditor.h @@ -50,9 +50,8 @@ public: private: QSet<QString> annotationChanges() const; QString changeUnderCursor(const QTextCursor &) const; - QRegExp diffFilePattern() const; VcsBase::BaseAnnotationHighlighter *createAnnotationHighlighter(const QSet<QString> &changes, const QColor &bg) const; - QString fileNameFromDiffSpecification(const QTextBlock &diffFileName) const; + QString findDiffFile(const QString &f) const; QStringList annotationPreviousVersions(const QString &v) const; mutable QRegExp m_changeNumberPattern; |