mirror of
https://github.com/stablyai/orca.git
synced 2026-11-03 02:27:43 +00:00
* fix(mobile): compare branches and show diffs with desktop's base-ref and whitespace settings Base-ref resolution moves to src/shared and the host publishes the compare-against-upstream and show-whitespace settings, so the phone's branch compare and diffs match desktop. * fix(mobile): use the upstream compare policy on the review screen and rebuild diffs when whitespace changes * fix(mobile): reread Source Control settings on Refresh and restart diffs loading under the old whitespace setting * test(mobile): cover diffs dropped when desktop's whitespace setting arrives * refactor(mobile): share one Source Control settings read per host across screens
5 lines
231 B
TypeScript
5 lines
231 B
TypeScript
/** Diffs hide leading/trailing-whitespace-only changes unless the user turned whitespace on. */
|
|
export function shouldIgnoreTrimWhitespace(diffShowWhitespace: boolean | undefined): boolean {
|
|
return diffShowWhitespace !== true
|
|
}
|