MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / handleLine

Method handleLine

src/plugins/git/utils/diffutils.cpp:1103–1115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1101}
1102
1103void GitDiffWorker::handleLine(const QStringList &newLines, int line, QList<TextLineData> *lines, int *lineNumber)
1104{
1105 if (line < newLines.size()) {
1106 const QString text = newLines.at(line);
1107 if (lines->isEmpty() || line > 0) {
1108 if (line > 0)
1109 ++*lineNumber;
1110 lines->append(TextLineData(text));
1111 } else {
1112 lines->last().text += text;
1113 }
1114 }
1115}
1116
1117bool GitDiffWorker::lastLinesEqual(const QList<TextLineData> &leftLines, const QList<TextLineData> &rightLines)
1118{

Callers

nothing calls this directly

Calls 5

TextLineDataClass · 0.85
atMethod · 0.80
sizeMethod · 0.45
isEmptyMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected