Settle what the checks of the review fixes found

A difference that comes and goes no longer makes the account ask about a stop
the user has already chosen on. The balance of the restrictions adds each
period to what was published, so a change of capital does not rewrite the
past. An image is published only under a tag that exists, and a file that is
not part of it no longer marks it as unclean.

refs #70 #74 #75

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-12-01 23:16:14 +01:00
1 parent d26d945818
commit 8d7efe425d
8 files changed
+199 -23

No files matched your search

+4 -2
View File
@@ -86,11 +86,13 @@ int BuildImage(string tag) =>
"-t", $"gitea.encke-hake.ts.net/balbosoft/anubis:{tag}", "."]) ?? 0;
// The commit written in the image, so a diagnostics report says which code it comes from and only the commit of a tag is
// published as that tag; with something not committed it is marked, and empty without git.
// published as that tag; with something of the image not committed it is marked, and empty without git.
string Commit()
{
// What the Dockerfile copies, and what decides it.
string[] imageSources = ["Directory.Build.props", "Directory.Packages.props", "global.json", ".dockerignore", "src", "deploy/docker", "docs/design/logo", "docs/backtests", "docs/learning"];
var commit = Git("rev-parse", "HEAD");
return commit is null ? "" : Git("status", "--porcelain") is "" ? commit : commit + "-dirty";
return commit is null ? "" : Git(["status", "--porcelain", "--", .. imageSources]) is "" ? commit : commit + "-dirty";
}
// What a git command answers; null when it fails or git is not there.