From a3bfab2365eb90d17b625046a2d1fa3824221908 Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 19 Nov 2025 12:58:33 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20diff=20=D1=81=20=D0=BF=D1=83=D1=81?= =?UTF-8?q?=D1=82=D1=8B=D0=BC=20=D1=81=D0=BD=D0=B8=D0=BC=D0=BA=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 9 ++++++++- source/dwatch/cli/core.d | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) 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();