mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-05-16 20:57:19 +02:00
Add live git status indicators (#458)
This commit is contained in:
@@ -2,8 +2,7 @@ import type { SyncModel } from "@yaakapp-internal/git";
|
||||
import { stringify } from "yaml";
|
||||
|
||||
/**
|
||||
* Convert a SyncModel to a clean YAML string for diffing.
|
||||
* Removes noisy fields like updatedAt that change on every edit.
|
||||
* Convert a SyncModel to a YAML string for diffing.
|
||||
*/
|
||||
export function modelToYaml(model: SyncModel | null): string {
|
||||
if (!model) return "";
|
||||
|
||||
Reference in New Issue
Block a user