Re: [PATCH 2/9] GIT-VERSION-GEN: move default version into a separate file
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 13, 2025, 17:42 UTC
- Message-ID
- <xmqqa5bua9vy.fsf@gitster.g>
- In-Reply-To
- <20250113-b4-pks-meson-additions-v1-2-97f6a93f691d@pks.im>
Patrick Steinhardt <ps@pks.im> writes:
Show 8 quoted lines
> - We can pull the default version out of GIT-VERSION-GEN and move it > into its own file. This likely requires some adjustments for scripts > that bump the version, but allows Meson to read the version from > that file trivially. > > The last option is a proper solution and quite trivial to implement, and > adapting scripts should be a one-time event. Refactor GIT-VERSION-GEN > accordingly.
It is not clear what "proper" is. It smells like we are bending an established work flow element to placate a tool that is not willing to cooperate, which is very much unwelcome.
Compared to that, grepping for "^DEF_VER=" in the file may be less yucky.