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

Re: [RFC/PATCH 0/2] Test the Git version string

From
Philip Oakley <philipoakley@iee.org>
Date
Apr 16, 2013, 21:22 UTC
Message-ID
<2FE4D2171A03425AA9C8FF10140AC030@PhilipOakley>
In-Reply-To
<7v8v4imjji.fsf@alter.siamese.dyndns.org>
From: "Junio C Hamano" <gitster@pobox.com>
Sent: Tuesday, April 16, 2013 7:12 PM
Show 22 quoted lines
> "Philip Oakley" <philipoakley@iee.org> writes:
>
>>> What kind of benefit are you envisioning out of this?
>>
>> The purpose of tests is to detect mistakes and spot regressions.
>>
>> A change to the 'git version X.Y.z' string would be a regression, as 
>> I
>> spotted earlier, as it conflicts with expectations of standard
>> programmes such as git-gui.
>
> Sorry, but I do not follow.
>
> A released version says "git version 1.8.2.1".  In a month or so,
> I'll have another one that says "git version 1.8.3".  Or I may
> decide to bump in preparation for 2.0 and it may identify itself as
> "git version 1.9".
>
> Neither of which no existing "program such as git-gui" has ever
> seen.
>
> In what way is that a regression?

But they both pass the test and test suite, yes? And even if you use git-gui with them, git-gui will not barf on start up, which it would if the version string fails my test.

Passing the test suite should be a reasonble guarantee that co-tools will work, including those that check for version. This is a check for that version string.

However if someone[1] creates "My Special Git Version 1-9-3 (Index V7b)", and here I'm suggesting they may have other special changes, then the version check will tell them that even when they have fixed their special changes to pass the other parts of the test suite, other co-tools could barf.

Its about pushing the piece of string from the users end ;-) It also stops others trying to change 'git' to 'Git' within this message, just as I did.

Philip
>

[1] my first draft had 'you', but that is not a reasonable starting position. It's more about *others* attempting to create release versions, which announce their name, that we expect to be compatible with say git-gui (via the rest of the test suite), and need to check that announcement.

Previous: Junio C Hamano
Message 11 of 11 in “Test the Git version string”
  1. 0/2 Test the Git version stringPhilip Oakley, Apr 14, 2013
  2. 1/2 test git version stringPhilip Oakley, Apr 14, 2013
  3. 2/2 Doc: State the exact git version stringPhilip Oakley, Apr 14, 2013
  4. Junio C HamanoApr 14, 2013
  5. Philip OakleyApr 14, 2013
  6. Junio C HamanoApr 15, 2013
  7. Philip OakleyApr 16, 2013
  8. Junio C HamanoApr 16, 2013
  9. David AguilarApr 16, 2013
  10. Junio C HamanoApr 16, 2013
  11. Philip OakleyApr 16, 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.