Using IsmasClient::getReasonForLastSendVersion()

This commit is contained in:
Gerhard Hoffmann 2023-09-04 11:46:37 +02:00
parent 981a2ea13a
commit bb35e985ad

View File

@ -129,7 +129,10 @@ QStringList GitClient::gitShowReason() {
int const c = s.indexOf("c="); int const c = s.indexOf("c=");
int const m = s.indexOf("m="); int const m = s.indexOf("m=");
int const d = s.indexOf("d="); int const d = s.indexOf("d=");
QString commit{""}, msg{""}, date{""};
QString msg = IsmasClient::getReasonForLastSendVersion();
QString commit{""}, date{""};
if (c != -1) { if (c != -1) {
int start = c + 2; int start = c + 2;
if (m >= start) { if (m >= start) {
@ -139,7 +142,9 @@ QStringList GitClient::gitShowReason() {
start = m + 2; start = m + 2;
if (d >= start) { if (d >= start) {
length = d - start; length = d - start;
msg += " (";
msg = s.mid(start, length).trimmed(); msg = s.mid(start, length).trimmed();
msg += ")";
start = d + 2; start = d + 2;
date = s.mid(start); date = s.mid(start);