Files
orca/mobile/src/source-control/mobile-diff-format.ts
T
Neil 19043a3d76 refactor(mobile): organize pairing, session, RPC and host owners (#39846)
* refactor(mobile): give relay and encryption concrete owners

* refactor(mobile): organize session and review feature owners

* refactor(mobile): organize RPC and host ownership

* test(mobile): point render fixtures at concrete owners

* refactor(mobile): use explicit type-only owner imports
2026-11-08 07:19:05 -08:00

16 lines
383 B
TypeScript

import type { MobileDiffLine } from './review/mobile-diff-lines'
export function mobileDiffLinePrefix(kind: MobileDiffLine['kind']): string {
if (kind === 'add') {
return '+'
}
if (kind === 'delete') {
return '-'
}
return ' '
}
export function mobileDiffLineNumber(line: MobileDiffLine): string {
return String(line.newLineNumber ?? line.oldLineNumber ?? '')
}