Git: Recognize SHA1s from 7 to 40 digits.

Qt's grafts have 9-digit SHA1s which did not work
with the previous 7-8/40 character limits.

Change-Id: I3989405d00b575a6efb7dc6a467cbb24df9f3db5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Friedemann Kleint
2013-03-19 11:52:48 +01:00
parent 55e45ff3e0
commit 89e0a66f74
2 changed files with 7 additions and 13 deletions

View File

@@ -68,8 +68,7 @@ private:
void addChangeActions(QMenu *menu, const QString &change);
QString revisionSubject(const QTextBlock &inBlock) const;
mutable QRegExp m_changeNumberPattern8;
mutable QRegExp m_changeNumberPattern40;
mutable QRegExp m_changeNumberPattern;
QString m_currentChange;
};