mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
Merge pull request #3260 from mroutis/change-diff-format
diff: format summary to make it more human readable
This commit is contained in:
+2
-2
@@ -87,8 +87,8 @@ class CmdDiff(CmdBase):
|
||||
)
|
||||
|
||||
groups.append(
|
||||
"summary: added ({added}), deleted ({deleted}),"
|
||||
" modified ({modified})".format_map(summary)
|
||||
"files summary: {added} added, {deleted} deleted,"
|
||||
" {modified} modified".format_map(summary)
|
||||
)
|
||||
|
||||
return "\n\n".join(groups)
|
||||
|
||||
@@ -19,7 +19,7 @@ def test_default(mocker, caplog):
|
||||
"Added:\n"
|
||||
" file\n"
|
||||
"\n"
|
||||
"summary: added (1), deleted (0), modified (0)"
|
||||
"files summary: 1 added, 0 deleted, 0 modified"
|
||||
) in caplog.text
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ def test_checksums(mocker, caplog):
|
||||
"Modified:\n"
|
||||
" AAAAAAAA..BBBBBBBB file\n"
|
||||
"\n"
|
||||
"summary: added (0), deleted (2), modified (1)"
|
||||
"files summary: 0 added, 2 deleted, 1 modified"
|
||||
) in caplog.text
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user