MCPcopy Create free account
hub / github.com/Murmele/Gittyup / header_struct

Method header_struct

src/git/Patch.cpp:201–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201const git_diff_hunk *Patch::header_struct(int hidx) const {
202 if (isConflicted())
203 return nullptr;
204
205 const git_diff_hunk *hunk = nullptr;
206 int result = git_patch_get_hunk(&hunk, nullptr, d.data(), hidx);
207 return (GIT_OK == result) ? hunk : nullptr;
208}
209
210int Patch::lineCount(int hidx) const {
211 if (isConflicted())

Callers 1

setEditorLineInfosMethod · 0.80

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected