MCPcopy
hub / github.com/desktop/desktop / getTextDiff

Function getTextDiff

app/test/unit/git/diff-test.ts:40–47  ·  view source on GitHub ↗
(
  repo: Repository,
  file: WorkingDirectoryFileChange
)

Source from the content-addressed store, hash-verified

38import { join } from 'node:path'
39
40async function getTextDiff(
41 repo: Repository,
42 file: WorkingDirectoryFileChange
43): Promise<ITextDiff> {
44 const diff = await getWorkingDirectoryDiff(repo, file)
45 assert.equal(diff.kind, DiffType.Text)
46 return diff as ITextDiff
47}
48
49describe('git/diff', () => {
50 describe('getWorkingDirectoryImage', () => {

Callers 1

diff-test.tsFile · 0.70

Calls 1

getWorkingDirectoryDiffFunction · 0.90

Tested by

no test coverage detected