build: untrack generated src/gitversion.h.in #137

Manually merged
jabber.developer merged 1 commits from chore/untrack-gitversion into master 2026-06-23 12:34:20 +00:00
Collaborator

src/gitversion.h.in is listed in .gitignore and regenerated by the build recipe from .git/HEAD/.git/index, but it was committed to the repo by mistake during the upstream sync. As a result the tracked file is overwritten by the build and dirties git status.

This PR untracks the file (git rm --cached), restoring the pre-sync state where it was a purely generated artifact. The file stays on disk and remains gitignored.

Version-string behaviour is unchanged: dev builds still report 0.15.0dev.master.. The generation recipe and the BUILT_SOURCES dependency are left untouched — that is a separate concern (see below).

Out of scope: the common.o recompile + relink on every git operation (measured ~1.85s) remains. It stems from gitversion.h depending on .git/HEAD/.git/index and predates the upstream sync; removing it would require moving the hash computation into ./configure.

Fixes #139

src/gitversion.h.in is listed in .gitignore and regenerated by the build recipe from .git/HEAD/.git/index, but it was committed to the repo by mistake during the upstream sync. As a result the tracked file is overwritten by the build and dirties git status. This PR untracks the file (git rm --cached), restoring the pre-sync state where it was a purely generated artifact. The file stays on disk and remains gitignored. Version-string behaviour is unchanged: dev builds still report 0.15.0dev.master.<hash>. The generation recipe and the BUILT_SOURCES dependency are left untouched — that is a separate concern (see below). Out of scope: the common.o recompile + relink on every git operation (measured ~1.85s) remains. It stems from gitversion.h depending on .git/HEAD/.git/index and predates the upstream sync; removing it would require moving the hash computation into ./configure. Fixes #139
jabber.developer2 added 1 commit 2026-06-23 10:57:27 +00:00
build: untrack generated src/gitversion.h.in
All checks were successful
CI Code / Check spelling (pull_request) Successful in 18s
CI Code / Check coding style (pull_request) Successful in 33s
CI Code / Linux (debian) (pull_request) Successful in 4m24s
CI Code / Linux (ubuntu) (pull_request) Successful in 6m52s
CI Code / Code Coverage (pull_request) Successful in 7m31s
CI Code / Linux (arch) (pull_request) Successful in 11m0s
d4fbc26fea
The file is gitignored and regenerated by the build recipe from
.git/HEAD/.git/index; it was committed by mistake during the upstream
sync. Untrack it so builds no longer dirty the working tree. The
version string behaviour is unchanged.
jabber.developer manually merged commit 72aa603147 into master 2026-06-23 12:34:20 +00:00
Sign in to join this conversation.
No description provided.