Skip to content

Commit

Permalink
freeze: convert to 1.0 (#1488)
Browse files Browse the repository at this point in the history
* freeze: convert to 1.0

* Update content/docs/command-reference/freeze.md

* Update content/docs/command-reference/freeze.md

Co-authored-by: Jorge Orpinel <[email protected]>
  • Loading branch information
pared and jorgeorpinel authored Jun 24, 2020
1 parent ccaecda commit cb1245b
Showing 1 changed file with 20 additions and 26 deletions.
46 changes: 20 additions & 26 deletions content/docs/command-reference/freeze.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,51 +44,45 @@ First, let's create a simple DVC-file:
```dvc
$ echo foo > foo
$ dvc add foo
Saving information ...
$ dvc run -d foo -o bar cp foo bar
Running command:
cp foo bar
...
$ dvc run -d foo -o bar -n make_copy cp foo bar
```

Then, let's change the file `foo` that the stage described in `bar.dvc` depends
on:
Then, let's change the file `foo` that the stage `make_copy` depends on:

```dvc
$ rm foo
$ echo foo1 > foo
$ dvc status
bar.dvc
deps
changed: foo
foo.dvc
outs
changed: foo
make_copy:
changed deps:
modified: foo
foo.dvc:
changed outs:
modified: foo
```

Now, let's freeze the `bar` stage:
Now, let's freeze the `make_copy` stage:

```dvc
$ dvc freeze bar.dvc
$ dvc freeze make_copy
$ dvc status
foo.dvc
outs
changed: foo
foo.dvc:
changed outs:
modified: foo
```

Run `dvc unfreeze` to unfreeze it back:

```dvc
$ dvc unfreeze bar.dvc
$ dvc unfreeze make_copy
$ dvc status
bar.dvc
deps
changed: foo
foo.dvc
outs
changed: foo
make_copy:
changed deps:
modified: foo
foo.dvc:
changed outs:
modified: foo
```

0 comments on commit cb1245b

Please sign in to comment.