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

Re: Remote git-describe ?

From
FMFrancis Moreau <francis.moro@gmail.com>
Date
Jan 24, 2007, 12:50 UTC
Message-ID
<38b2ab8a0701240450s614df3bevf95e62add1b1783f@mail.gmail.com>
In-Reply-To
<7vps94fweq.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 13 quoted lines
> "Francis Moreau" <francis.moro@gmail.com> writes:
>
>> ... Givinig that I would use it to describe the HEAD of the kernel repo:
>>
>>        $ git describe --remote=<git-server> HEAD
>>
>> this would make the server parse all commits between HEAD and the
>> closest tag which seems to me a lot cheaper than downloading the whole
>> repo...
>
> Do you mean you want to have the server describe the HEAD the
> server side has (not the HEAD in your repository)?  Why?
>
yes. see below...
Show 13 quoted lines
> I suspect the real motivation of your question lies elsewhere
> and not in "describe".
>
> Suppose we had such a service on the server side, and you asked
> the server twice and got these (at different times, of course):
>
> 	v2.6.20-rc5-g419dd83
> 	v2.6.20-rc5-gde14569
>
> What useful information can you get between the two?
>
> Nothing.
>
I agree in the context I gave, it's useless.
Show 5 quoted lines
>
> So I suspect what you are after is not about using describe
> remotely or describing where the HEAD is; you want to know if
> there is a new tag near the tip since the last time you checked.
>

Actually I'd like to generate an archive from a git server. And I want to give the name of the archive file, the ouptut given by 'git describe'.

Since I can pass --remote to 'git archive', I do not need anymore to clone the repo before generating the archive. But I still needs it only to run 'git describe' thus my question...

thanks
-- 
Francis
Previous: Nicolas Pitre
Message 11 of 11 in “Remote git-describe ?”
  1. Francis MoreauJan 24, 2007
  2. Johannes SchindelinJan 24, 2007
  3. Francis MoreauJan 24, 2007
  4. Johannes SchindelinJan 24, 2007
  5. Junio C HamanoJan 24, 2007
  6. Junio C HamanoJan 24, 2007
  7. Santi BéjarJan 24, 2007
  8. Johannes SchindelinJan 24, 2007
  9. Simon 'corecode' SchubertJan 24, 2007
  10. Nicolas PitreJan 24, 2007
  11. Francis MoreauJan 24, 2007

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.