From 9690043e57d04036bf178b72b4d57a87a1cd95b6 Mon Sep 17 00:00:00 2001 From: arcattack Date: Sat, 18 Jul 2026 19:06:45 -0500 Subject: [PATCH] btversion: also exclude content/OPERATOR.EGG (operator-app working file) from the dirty check Co-Authored-By: Claude Fable 5 --- tools/btversion.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/btversion.cmake b/tools/btversion.cmake index 73c70bd..3e37a5c 100644 --- a/tools/btversion.cmake +++ b/tools/btversion.cmake @@ -15,10 +15,12 @@ execute_process(COMMAND git rev-parse --short HEAD WORKING_DIRECTORY "${SRC}" OUTPUT_VARIABLE BT_HASH OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET) -# content/LAST.EGG is rewritten by the game at every run -- a permanent -# false-dirty; exclude it so a pristine checkout stamps clean. +# content/LAST.EGG is rewritten by the game every run and content/OPERATOR.EGG +# is overwritten by the operator app on Save -- both are runtime working files, +# not source, so exclude them (else the build stamps a false '+' dirty marker). execute_process(COMMAND git status --porcelain --untracked-files=no -- . ":(exclude)content/LAST.EGG" + ":(exclude)content/OPERATOR.EGG" WORKING_DIRECTORY "${SRC}" OUTPUT_VARIABLE BT_DIRTY_RAW ERROR_QUIET)