Исправление diff с пустым снимком

This commit is contained in:
Alexander Zhirov 2025-11-19 12:58:33 +03:00
parent 131fbca4da
commit a3bfab2365
Signed by: alexander
GPG key ID: C8D8BE544A27C511
2 changed files with 10 additions and 2 deletions

9
.vscode/launch.json vendored
View file

@ -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",

View file

@ -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();