From 36973fe2ef1b5ae69129315aea411cb8a0e1f4f5 Mon Sep 17 00:00:00 2001 From: jeremydesroches <18587991+jeremydesroches@users.noreply.github.com> Date: Sun, 22 Nov 2020 21:05:20 -0700 Subject: [PATCH 1/3] Update examples for latest dvc version and example repo data. Fix typo. --- content/docs/command-reference/diff.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/content/docs/command-reference/diff.md b/content/docs/command-reference/diff.md index 83ba963b56..e2fc167c89 100644 --- a/content/docs/command-reference/diff.md +++ b/content/docs/command-reference/diff.md @@ -117,13 +117,13 @@ Started_ chapter, right after we added `data.xml` file with DVC: ```dvc $ git checkout 2-track-data -$ dvc pull +$ dvc checkout ``` To see the difference between the very previous commit of the project and the -workspace, we can use `HEAD^` as `a_ref`: +workspace, we can use `HEAD^` as `a_rev`: ```dvc $ dvc diff HEAD^ @@ -158,14 +158,16 @@ $ dvc checkout $ dvc diff baseline-experiment bigrams-experiment Modified: data/features/ + data/features/test.pkl + data/features/train.pkl + model.pkl prc.json scores.json - model.pkl -files summary: 0 added, 0 deleted, 3 modified +files summary: 0 added, 0 deleted, 5 modified ``` -The output from this command confirms that there's a difference in 4 files +The output from this command confirms that there's a difference in 5 files between the tags `baseline-experiment` and `bigrams-experiment`. ## Example: Using different output formats @@ -185,20 +187,22 @@ It outputs: "added": [], "deleted": [], "modified": [ - ...{ + { "path": "data/features/", "hash": { "old": "3338d2c21bdb521cda0ba4add89e1cb0.dir", "new": "42c7025fc0edeb174069280d17add2d4.dir" } }, - ...{ + ... + { "path": "model.pkl", "hash": { "old": "43630cce66a2432dcecddc9dd006d0a7", "new": "662eb7f64216d9c2c1088d0a5e2c6951" } } + ... ] } ``` From a2d1431c9425af3f99bc0a7cfec6caf0b7b7753b Mon Sep 17 00:00:00 2001 From: jeremydesroches <18587991+jeremydesroches@users.noreply.github.com> Date: Sun, 22 Nov 2020 21:17:46 -0700 Subject: [PATCH 2/3] Updating Get Started links --- content/docs/command-reference/diff.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/content/docs/command-reference/diff.md b/content/docs/command-reference/diff.md index e2fc167c89..73b3d9c79a 100644 --- a/content/docs/command-reference/diff.md +++ b/content/docs/command-reference/diff.md @@ -65,8 +65,7 @@ for example when `dvc init` was used with the `--no-scm` option. ## Examples -For these examples we can use the [Get Started](/doc/tutorials/get-started) -project. +For these examples we can use the [Get Started](/doc/start) project.
@@ -111,8 +110,7 @@ $ dvc diff Let's checkout the [2-track-data](https://github.com/iterative/example-get-started/releases/tag/2-track-data) -tag, corresponding to the -[tracking data](/doc/tutorials/get-started/data-versioning#tracking-data) _Get +tag, corresponding to the [data versioning](/doc/start/data-versioning) _Get Started_ chapter, right after we added `data.xml` file with DVC: ```dvc From 002c9902448343645a6e422f1dd8d540e68353ad Mon Sep 17 00:00:00 2001 From: Jorge Orpinel Date: Mon, 23 Nov 2020 17:46:54 -0600 Subject: [PATCH 3/3] Update content/docs/command-reference/diff.md --- content/docs/command-reference/diff.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/command-reference/diff.md b/content/docs/command-reference/diff.md index 73b3d9c79a..3da933b490 100644 --- a/content/docs/command-reference/diff.md +++ b/content/docs/command-reference/diff.md @@ -110,7 +110,7 @@ $ dvc diff Let's checkout the [2-track-data](https://github.com/iterative/example-get-started/releases/tag/2-track-data) -tag, corresponding to the [data versioning](/doc/start/data-versioning) _Get +tag, corresponding to the [Data Versioning](/doc/start/data-versioning) _Get Started_ chapter, right after we added `data.xml` file with DVC: ```dvc