MCPcopy Create free account
hub / github.com/KDE/kate / containsDiffLine

Method containsDiffLine

apps/lib/diff/gitdiff.cpp:49–52  ·  view source on GitHub ↗

* @param lineIdx the 0-based line number of the tested line in the whole diff * @returns true if the line is part of the diff and false otherwise * @note: Returns true also for the header line (the one starting with `@@`) */

Source from the content-addressed store, hash-verified

47 * @note: Returns true also for the header line (the one starting with `@@`)
48 */
49 bool containsDiffLine(uint lineIdx) const
50 {
51 return headingLineIdx <= lineIdx && lineIdx <= lastLineIdx();
52 }
53
54 /**
55 * Returns the index of the line within the hunk

Callers 2

mapDiffLineMethod · 0.80
subDiffHunkMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected