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

Function getTextDiff

app/test/unit/git/commit-test.ts:42–49  ·  view source on GitHub ↗
(
  repo: Repository,
  file: WorkingDirectoryFileChange
)

Source from the content-addressed store, hash-verified

40import { isConflictedFile } from '../../../src/lib/status'
41
42async function getTextDiff(
43 repo: Repository,
44 file: WorkingDirectoryFileChange
45): Promise<ITextDiff> {
46 const diff = await getWorkingDirectoryDiff(repo, file)
47 assert.equal(diff.kind, DiffType.Text)
48 return diff as ITextDiff
49}
50
51describe('git/commit', () => {
52 describe('createCommit normal', () => {

Callers 1

commit-test.tsFile · 0.70

Calls 1

getWorkingDirectoryDiffFunction · 0.90

Tested by

no test coverage detected