MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / addLine

Method addLine

programs/git-import/git-import.cpp:653–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651 }
652
653 void addLine(uint32_t num, Commit commit)
654 {
655 walk(num);
656
657 /// If the inserted line is over the end of file, we insert empty lines before it.
658 while (it == lines.end() && current_idx < num)
659 {
660 lines.emplace_back();
661 ++current_idx;
662 }
663
664 it = lines.insert(it, commit);
665 }
666
667 void removeLine(uint32_t num)
668 {

Callers 1

updateSnapshotFunction · 0.80

Calls 3

endMethod · 0.45
emplace_backMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected