MCPcopy Create free account
hub / github.com/TortoiseGit/TortoiseGit / OverlayConsoleLine

Function OverlayConsoleLine

src/TortoiseProc/GitCliOutputParser.cpp:152–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152static std::string OverlayConsoleLine(const std::string& oldLine, const std::string& newLine)
153{
154 if (newLine.size() >= oldLine.size())
155 return newLine;
156
157 std::string result = oldLine;
158 std::copy(newLine.begin(), newLine.end(), result.begin());
159 return result;
160}
161
162void CGitCliOutputParser::EraseVisiblePendingIfNeeded(EmittedLines& out)
163{

Callers 1

HandleLineMethod · 0.85

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected