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

Method addLine

programs/git-import/git-import.cpp:644–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642 }
643
644 void addLine(uint32_t num, Commit commit)
645 {
646 walk(num);
647
648 /// If the inserted line is over the end of file, we insert empty lines before it.
649 while (it == lines.end() && current_idx < num)
650 {
651 lines.emplace_back();
652 ++current_idx;
653 }
654
655 it = lines.insert(it, commit);
656 }
657
658 void removeLine(uint32_t num)
659 {

Callers 1

updateSnapshotFunction · 0.80

Calls 3

endMethod · 0.45
emplace_backMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected