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
Felipe Contreras <felipe.contreras@gmail.com>
Date
Sep 9, 2013, 23:21 UTC
Message-ID
<CAMP44s3Nh-YoYTOXdxJDp469P7dz=kiEEXr3_XKzxuepFiD1GA@mail.gmail.com>
In-Reply-To
<xmqqr4cx1u7u.fsf@gitster.dls.corp.google.com>
On Sun, Sep 8, 2013 at 12:41 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 11 quoted lines
> Sebastian Schuberth <sschuberth@gmail.com> writes:
>
>> Which raises another question on my side: Isn't it tedious for you to
>> both update DEF_VER *and* tag a version? Wouldn't it probably be less
>> error prove (in the sense of keeping DEF_VER and tagged version in
>> sync) to remove DEF_VER completely and just die if all ways to derive
>> a Git version fail?
>
> I do not see how it will fly well.  Some people want to build out of
> tarballs without having any "describe", and DEF_VER and version were
> added for that specific purpose.
'version' works, there's no need for DEF_VER.
Show 12 quoted lines
>>> a case where you have your own tag that points at the exact version
>>> as I tagged?  In such a case, do you have a preference on which tag
>>
>> No. I always carry patches on top.
>
> That answer sidesteps the real issue; which one would you prefer if
> there are two or more tags?  "describe" updated with your patch
> would consider both and I think it favours the annotated one over
> lightweight.  If it matches the preferred order then G-V-N with you
> patch would help your workflow; otherwise you would still need a
> different way, e.g. making sure what you want it to use is always
> used by doing the ">version" thing.
That is a red herring.

If there's a lightweight tag on top of v1.8.4, and Git chooses to use v1.8.4 as a version name, that's fine because as a matter of fact, that's the real version, since there's no actual changes on top of that.

-- 
Felipe Contreras
Previous: Junio C HamanoNext: Sebastian Schuberth
Message 8 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.