Skip to content

Commit

Permalink
💅 add reference explaining git revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr. Outis committed Jan 27, 2020
1 parent 9d14acd commit 9171b9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/func/test_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ def test_directories(tmp_dir, scm, dvc):
scm.add("dir.dvc")
scm.commit("delete a file")


# The ":/<text>" format is a way to specify revisions by commit message:
# https://git-scm.com/docs/git-rev-parse
#
assert dvc.diff(":/init", ":/directory") == {
"added": [
{
Expand Down

0 comments on commit 9171b9e

Please sign in to comment.