Home
Author Manual
Builder Manual
Development
Usage
fpm start-project
fpm build
fpm sync
fpm status
fpm diff
fpm update
fpm serve
fpm add
fpm rm
fpm resolve-conflict
fpm clone

fpm diff

fpm diff shows the changes in the package, compared with what was last synced using fpm sync.
fpm diff
diff: foo.ftd
--- original
+++ modified
@@ -32,12 +32,11 @@
 width: fill
 padding: 20

-/-- show-repo:
+/-- show-repo asd:
 o: $o
 $loop$: $r.items as $o

-- ftd.column show-repo:
repo o:
padding: 20
width: fill
border-radius: 5

Developer Notes
We use diffy to create diff:

diffy::create_patch(original, modified)
Note that this creates a diff which is slightly incompatible with git diff output, so we cant use elm-diff for example.