https://gitlab.synchro.net/main/sbbs/-/commit/2f7181ee7de904e81db6346a
Modified Files:
src/build/gitinfo.bat
Log Message:
gitinfo.bat: rewrite git_hash.h/git_branch.h only when they change
The MSVC pre-build step wrote both headers straight to their final names on every build, clean tree or dirty, so each MSBuild of sbbs.vcxproj (and
vdmodem, sbbs.jsdocs) gave them a new timestamp and recompiled everything
that includes them (ver.cpp, logfile.cpp, the servers, ...), even when
nothing had changed. The make rules have replaced the headers only on a
content change since 9670a2a8e5 (2020-12-13).
Write each header to a temporary file and move it into place only when it differs. For a dirty tree, also port 4c1a9e658e (2026-12-02): record a hash
of HEAD plus the tracked diff under src/ and 3rdp/ as the first line of git_hash.h, and keep the existing header (and its build time) while that
hash still matches.
Also drop the trailing space the echo redirections left on the GIT_DATE
and GIT_TIME lines, and the dependency on Git's tr.exe for git_branch.h.
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net