MCPcopy Index your code
hub / github.com/desktop/desktop / withNoTrailingNewLine

Method withNoTrailingNewLine

app/src/models/diff/diff-line.ts:22–31  ·  view source on GitHub ↗
(noTrailingNewLine: boolean)

Source from the content-addressed store, hash-verified

20 ) {}
21
22 public withNoTrailingNewLine(noTrailingNewLine: boolean): DiffLine {
23 return new DiffLine(
24 this.text,
25 this.type,
26 this.originalLineNumber,
27 this.oldLineNumber,
28 this.newLineNumber,
29 noTrailingNewLine
30 )
31 }
32
33 public isIncludeableLine() {
34 return this.type === DiffLineType.Add || this.type === DiffLineType.Delete

Callers 1

parseHunkMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected