diff --git a/.vscode/launch.json b/.vscode/launch.json index 5615e67..f2a61a4 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -11,7 +11,14 @@ "name": "Build & Debug DUB project", "cwd": "${command:dubWorkingDirectory}", "program": "bin/${command:dubTarget}", - "args": [] + "args": [ + "--config", + "/etc/dwatch/config.json", + "snapshot", + "diff", + "-p", + "f3a3b9f9" + ] }, { "name": "Debug D Program with sudo-gdb", diff --git a/source/dwatch/cli/core.d b/source/dwatch/cli/core.d index 6bbfc4b..650f3bb 100644 --- a/source/dwatch/cli/core.d +++ b/source/dwatch/cli/core.d @@ -326,7 +326,8 @@ public: Pager pager = new Pager(data.split('\n'), format("Изменения файла %s от %s: %s diff %s", snapshotMain.file, getDate(snapshotMain.created), - snapshotMain.id.toString, snapshotRelative.id.toString + snapshotMain.id.toString, + snapshotRelative is null ? "пустой" : snapshotRelative.id.toString ) ); pager.render();