git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] GIT-VERSION-GEN: Do not require tags to be annotated

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 10, 2013, 15:59 UTC
Message-ID
<xmqqy574zmzd.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CAHGBnuN=vpJPXgd78aLohW3Awe+Y+0J7Bxwr4Fmn2NijMK1Z5g@mail.gmail.com>
Sebastian Schuberth <sschuberth@gmail.com> writes:
> Right, but do we really need DEF_VER *and* version? Couldn't we just
> package official source tarballs in a way that they already contain an
> auto-generated version file?

If you read our Makefile, you will see that we do include the version file in our official tarball with "make dist".

That however does not help those who use a tarball obtained from git-archive, perhaps via gitweb running at the distribution site.

Theoretically speaking, you can rip out everything but "version" and tell those who have been relying on the way other parts of G-V-G worked to change their workflow to stuff their favorite version string to that file before building, so in that sense, we do not *need* DEF_VER and version. But they have been there for a long time, and I do not think it gives us a good trade-off between risking regression and reducing the linecount to change it to remove one.

Previous: Felipe ContrerasNext: Sebastian Schuberth
Message 11 of 16 in “GIT-VERSION-GEN: Do not require tags to be annotated”
  1. GIT-VERSION-GEN: Do not require tags to be annotatedSebastian Schuberth, Sep 6, 2013
  2. Junio C HamanoSep 6, 2013
  3. Felipe ContrerasSep 7, 2013
  4. Sebastian SchuberthSep 7, 2013
  5. Junio C HamanoSep 7, 2013
  6. Sebastian SchuberthSep 7, 2013
  7. Junio C HamanoSep 8, 2013
  8. Felipe ContrerasSep 9, 2013
  9. Sebastian SchuberthSep 10, 2013
  10. Felipe ContrerasSep 10, 2013
  11. Junio C HamanoSep 10, 2013
  12. Sebastian SchuberthSep 10, 2013
  13. Felipe ContrerasSep 8, 2013
  14. Kyle J. McKaySep 6, 2013
  15. Sebastian SchuberthSep 7, 2013
  16. Felipe ContrerasSep 8, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.