MCPcopy Create free account
hub / github.com/desktop/desktop / readLine

Method readLine

app/src/lib/diff-parser.ts:133–135  ·  view source on GitHub ↗

* Advances to the next line and returns it as a substring * of the raw diff text. Returns null if end of diff was * reached.

()

Source from the content-addressed store, hash-verified

131 * reached.
132 */
133 private readLine(): string | null {
134 return this.nextLine() ? this.text.substring(this.ls, this.le) : null
135 }
136
137 /** Tests if the current line starts with the given search text */
138 private lineStartsWith(searchString: string): boolean {

Callers 1

parseHunkMethod · 0.95

Calls 1

nextLineMethod · 0.95

Tested by

no test coverage detected