dotmesh-io / dotmesh

dotmesh (dm) is like git for your data volumes (databases, files etc) in Docker and Kubernetes
https://dotmesh.com
Apache License 2.0
539 stars 29 forks source link

Diff endpoint #680

Closed rusenask closed 5 years ago

rusenask commented 5 years ago

Adding diff endpoint:

GET http://dotmesh:port/diff/namespace:name

Sample response body:

[
  {"change":"+","filename":"FOOBAR"}
]

Change values are following ZFS docs:

M           |  File or directory has been modified or file or directory link has changed
—           |  File or directory is present in the older snapshot but not in the more recent snapshot
+           |  File or directory is present in the more recent snapshot but not in the older snapshot
R           |  File or directory has been renamed

Pipeline: https://gitlab.dotmesh.com/dotmesh/dotmesh/pipelines/19312