Skip to main content

morphir kb sync diff

  • Usage: morphir kb sync diff [FLAGS] [PATH]…

Diff upstream's copy against the upstream form of ours

Arguments

  • [PATH]… — Mirrored paths or globs, e.g. docs/spec/draft/types.md or 'docs/**'. Quote a glob: an unquoted one is expanded by the shell against the working directory before this ever sees it. No argument diffs every mirrored file; - reads the remaining patterns from stdin, one per line

Flags

  • --kb <PATH> — Path to the knowledge base root (the directory holding bundles/). Auto-detected when omitted
  • --json — Emit JSON instead of text, for chaining and for agent consumption
  • --bundle <BUNDLE> — Bundle to sync (defaults to the one whose index declares sync: true)
  • --refs <REFS> — Reference checkouts root (default: .refs under the repository root)
  • --raw — Print the patch alone — git apply takes it in the upstream checkout
  • -z --null — Split the patterns read from stdin on NUL rather than newline, pairing with find -print0. Only meaningful alongside -